OLD | NEW |
1 <html> | 1 <html> |
2 <head id="head"> | 2 <head id="head"> |
3 <script src="../../resources/js-test.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) |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 testSelectorRoundTrip(":checked"); | 64 testSelectorRoundTrip(":checked"); |
65 testSelectorRoundTrip(":disabled"); | 65 testSelectorRoundTrip(":disabled"); |
66 testSelectorRoundTrip(":empty"); | 66 testSelectorRoundTrip(":empty"); |
67 testSelectorRoundTrip(":enabled"); | 67 testSelectorRoundTrip(":enabled"); |
68 testSelectorRoundTrip(":first-child"); | 68 testSelectorRoundTrip(":first-child"); |
69 testSelectorRoundTrip(":first-of-type"); | 69 testSelectorRoundTrip(":first-of-type"); |
70 testSelectorRoundTrip(":focus"); | 70 testSelectorRoundTrip(":focus"); |
71 testSelectorRoundTrip(":hover"); | 71 testSelectorRoundTrip(":hover"); |
72 testSelectorRoundTrip(":indeterminate"); | 72 testSelectorRoundTrip(":indeterminate"); |
73 testSelectorRoundTrip(":link"); | 73 testSelectorRoundTrip(":link"); |
| 74 testSelectorRoundTrip(":not(:placeholder-shown)"); |
| 75 testSelectorRoundTrip(":placeholder-shown"); |
74 testSelectorRoundTrip(":root"); | 76 testSelectorRoundTrip(":root"); |
75 testSelectorRoundTrip(":target"); | 77 testSelectorRoundTrip(":target"); |
76 testSelectorRoundTrip(":visited"); | 78 testSelectorRoundTrip(":visited"); |
77 | 79 |
78 debug(''); | 80 debug(''); |
79 | 81 |
80 testSelectorRoundTrip(":lang(a)"); | 82 testSelectorRoundTrip(":lang(a)"); |
81 testSelectorRoundTrip(":not(a)"); | 83 testSelectorRoundTrip(":not(a)"); |
82 testSelectorRoundTrip(":-webkit-any(a,b,p)"); | 84 testSelectorRoundTrip(":-webkit-any(a,b,p)"); |
83 | 85 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 shouldBe("parseThenSerializeRule(':before { }')", "'::before { }'"); | 157 shouldBe("parseThenSerializeRule(':before { }')", "'::before { }'"); |
156 shouldBe("parseThenSerializeRule(':first-letter { }')", "'::first-letter { }'"); | 158 shouldBe("parseThenSerializeRule(':first-letter { }')", "'::first-letter { }'"); |
157 shouldBe("parseThenSerializeRule(':first-line { }')", "'::first-line { }'"); | 159 shouldBe("parseThenSerializeRule(':first-line { }')", "'::first-line { }'"); |
158 shouldBe("parseThenSerializeRule(':-webkit-any( a.class1 , #id,[att
r] ) { }')","':-webkit-any(a.class1,#id,[attr]) { }'"); | 160 shouldBe("parseThenSerializeRule(':-webkit-any( a.class1 , #id,[att
r] ) { }')","':-webkit-any(a.class1,#id,[attr]) { }'"); |
159 | 161 |
160 debug(''); | 162 debug(''); |
161 | 163 |
162 </script> | 164 </script> |
163 </body> | 165 </body> |
164 </html> | 166 </html> |
OLD | NEW |