OLD | NEW |
1 <html> | 1 <html> |
2 <head id="head"> | 2 <head id="head"> |
3 <script src="../js/resources/js-test-pre.js"></script> | 3 <script src="../../resources/js-test.js"></script> |
4 </head> | 4 </head> |
5 <body> | 5 <body> |
6 <script> | 6 <script> |
7 | 7 |
8 description("This tests parsing and re-serialization of some CSS selectors."); | 8 description("This tests parsing and re-serialization of some CSS selectors."); |
9 | 9 |
10 function parseThenSerializeRule(rule) | 10 function parseThenSerializeRule(rule) |
11 { | 11 { |
12 var styleElement = document.getElementById("style"); | 12 var styleElement = document.getElementById("style"); |
13 var head = document.getElementById("head"); | 13 var head = document.getElementById("head"); |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 shouldBe("parseThenSerializeRule(':before { }')", "'::before { }'"); | 155 shouldBe("parseThenSerializeRule(':before { }')", "'::before { }'"); |
156 shouldBe("parseThenSerializeRule(':first-letter { }')", "'::first-letter { }'"); | 156 shouldBe("parseThenSerializeRule(':first-letter { }')", "'::first-letter { }'"); |
157 shouldBe("parseThenSerializeRule(':first-line { }')", "'::first-line { }'"); | 157 shouldBe("parseThenSerializeRule(':first-line { }')", "'::first-line { }'"); |
158 shouldBe("parseThenSerializeRule(':-webkit-any( a.class1 , #id,[att
r] ) { }')","':-webkit-any(a.class1,#id,[attr]) { }'"); | 158 shouldBe("parseThenSerializeRule(':-webkit-any( a.class1 , #id,[att
r] ) { }')","':-webkit-any(a.class1,#id,[attr]) { }'"); |
159 | 159 |
160 debug(''); | 160 debug(''); |
161 | 161 |
162 </script> | 162 </script> |
163 </body> | 163 </body> |
164 </html> | 164 </html> |
OLD | NEW |