Add reftest from http://lists.w3.org/Archives/Public/www-style/2009Jun/0164.html since it is also fixed by bug 476856.
authorZack Weinberg <zweinberg@mozilla.com>
Wed, 05 Aug 2009 17:45:49 -0700
changeset 31169 131db5ce6d89206644266f78f6c72e09519ebdd5
parent 31168 cddb8c13cef4e02fc4cce9724b3808c898c8293f
child 31170 aa0ee4e7b713816e5a1acfeb64397093d6cf1f62
push id8405
push userdbaron@mozilla.com
push dateThu, 06 Aug 2009 00:46:41 +0000
treeherdermozilla-central@131db5ce6d89 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs476856
milestone1.9.2a1pre
Add reftest from http://lists.w3.org/Archives/Public/www-style/2009Jun/0164.html since it is also fixed by bug 476856.
layout/reftests/bugs/476856-1-ref.html
layout/reftests/bugs/476856-1.html
layout/reftests/bugs/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/476856-1-ref.html
@@ -0,0 +1,19 @@
+<!doctype html>
+<html><head><title>Handling of un-terminated long tokens in CSS</title>
+
+</head><body>
+
+<div>This CSS parser does not
+  backtrack for unterminated comments.</div>
+
+<div>It does not
+  backtrack for unterminated double-quoted url().</div>
+
+<div>It does not
+  backtrack for unterminated single-quoted url().</div>
+
+<div>It does not
+  backtrack for unterminated unquoted url().</div>
+
+</body></html>
+
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/476856-1.html
@@ -0,0 +1,29 @@
+<!doctype html>
+<html><head><title>Handling of un-terminated long tokens in CSS</title>
+
+<style>#ax,#bx,#cx,#dx{display:none}</style>
+
+<style>#ad{color:/*}#ao{display:none}#ax{display:inline}</style>
+
+<style>#bd{background:url("xxx"}#bo{display:none}#bx{display:inline}</style>
+
+<style>#cd{background:url('xxx'}#co{display:none}#cx{display:inline}</style>
+
+<style>#dd{background:url(xxx}#do{display:none}#dx{display:inline}</style>
+
+</head><body>
+
+<div>This CSS parser <span id="ao">does not</span>
+  backtrack<span id="ax">s</span> for unterminated comments.</div>
+
+<div>It <span id="bo">does not</span>
+  backtrack<span id="bx">s</span> for unterminated double-quoted url().</div>
+
+<div>It <span id="co">does not</span>
+  backtrack<span id="cx">s</span> for unterminated single-quoted url().</div>
+
+<div>It <span id="do">does not</span>
+  backtrack<span id="dx">s</span> for unterminated unquoted url().</div>
+
+</body></html>
+
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -1190,16 +1190,17 @@ fails == 472020-2.xul 472020-2-ref.xul
 != 476063-3.html 476063-3-ref.html
 == 476063-4.xhtml 476063-4-ref.xhtml
 == 476357-1.html 476357-1-ref.html
 == 476598-1a.html 476598-1-ref.html
 == 476598-1a.html 476598-1-ref2.html
 == 476598-1b.html 476598-1-ref.html
 == 476598-1b.html 476598-1-ref2.html
 != 476598-1-ref.html about:blank
+== 476856-1.html 476856-1-ref.html
 == 478614-1.html 478614-1-ref.html
 == 478614-2.html 478614-1-ref.html
 == 478614-3.html 478614-3-ref.html
 == 478614-4.html 478614-4-ref.html
 == 478614-5.html 478614-5-ref.html
 == 478614-6.html 478614-6-ref.html
 == 478614-7.html 478614-7-ref.html
 == 478377-1.xul 478377-1-ref.xul