| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 testSelectorRoundTrip("::selection"); | 93 testSelectorRoundTrip("::selection"); |
| 94 | 94 |
| 95 debug(''); | 95 debug(''); |
| 96 | 96 |
| 97 testSelectorRoundTrip(":-webkit-any-link"); | 97 testSelectorRoundTrip(":-webkit-any-link"); |
| 98 testSelectorRoundTrip(":-webkit-autofill"); | 98 testSelectorRoundTrip(":-webkit-autofill"); |
| 99 testSelectorRoundTrip(":-webkit-drag"); | 99 testSelectorRoundTrip(":-webkit-drag"); |
| 100 | 100 |
| 101 debug(''); | 101 debug(''); |
| 102 | 102 |
| 103 shouldBe("parseThenSerializeRule('::-webkit-file-upload-button { }')", "'*::-web
kit-file-upload-button { }'"); | 103 shouldBe("parseThenSerializeRule('::-webkit-file-upload-button { }')", "'::-webk
it-file-upload-button { }'"); |
| 104 shouldBe("parseThenSerializeRule('::-webkit-search-cancel-button { }')", "'*::-w
ebkit-search-cancel-button { }'"); | 104 shouldBe("parseThenSerializeRule('::-webkit-search-cancel-button { }')", "'::-we
bkit-search-cancel-button { }'"); |
| 105 shouldBe("parseThenSerializeRule('::-webkit-search-decoration { }')", "'*::-webk
it-search-decoration { }'"); | 105 shouldBe("parseThenSerializeRule('::-webkit-search-decoration { }')", "'::-webki
t-search-decoration { }'"); |
| 106 shouldBe("parseThenSerializeRule('::-webkit-search-results-button { }')", "'*::-
webkit-search-results-button { }'"); | 106 shouldBe("parseThenSerializeRule('::-webkit-search-results-button { }')", "'::-w
ebkit-search-results-button { }'"); |
| 107 shouldBe("parseThenSerializeRule('::-webkit-search-results-decoration { }')", "'
*::-webkit-search-results-decoration { }'"); | 107 shouldBe("parseThenSerializeRule('::-webkit-search-results-decoration { }')", "'
::-webkit-search-results-decoration { }'"); |
| 108 shouldBe("parseThenSerializeRule('::-webkit-slider-thumb { }')", "'*::-webkit-sl
ider-thumb { }'"); | 108 shouldBe("parseThenSerializeRule('::-webkit-slider-thumb { }')", "'::-webkit-sli
der-thumb { }'"); |
| 109 | 109 |
| 110 debug(''); | 110 debug(''); |
| 111 | 111 |
| 112 testSelectorRoundTrip("a::-webkit-slider-thumb"); | 112 testSelectorRoundTrip("a::-webkit-slider-thumb"); |
| 113 shouldBe("parseThenSerializeRule('a ::-webkit-slider-thumb { }')", "'a *::-webki
t-slider-thumb { }'"); | 113 shouldBe("parseThenSerializeRule('a ::-webkit-slider-thumb { }')", "'a ::-webkit
-slider-thumb { }'"); |
| 114 testSelectorRoundTrip("[a]::-webkit-slider-thumb"); | 114 testSelectorRoundTrip("[a]::-webkit-slider-thumb"); |
| 115 shouldBe("parseThenSerializeRule('[a] ::-webkit-slider-thumb { }')", "'[a] *::-w
ebkit-slider-thumb { }'"); | 115 shouldBe("parseThenSerializeRule('[a] ::-webkit-slider-thumb { }')", "'[a] ::-we
bkit-slider-thumb { }'"); |
| 116 testSelectorRoundTrip(".a::-webkit-slider-thumb"); | 116 testSelectorRoundTrip(".a::-webkit-slider-thumb"); |
| 117 shouldBe("parseThenSerializeRule('.a ::-webkit-slider-thumb { }')", "'.a *::-web
kit-slider-thumb { }'"); | 117 shouldBe("parseThenSerializeRule('.a ::-webkit-slider-thumb { }')", "'.a ::-webk
it-slider-thumb { }'"); |
| 118 testSelectorRoundTrip("#a::-webkit-slider-thumb"); | 118 testSelectorRoundTrip("#a::-webkit-slider-thumb"); |
| 119 shouldBe("parseThenSerializeRule('#a ::-webkit-slider-thumb { }')", "'#a *::-web
kit-slider-thumb { }'"); | 119 shouldBe("parseThenSerializeRule('#a ::-webkit-slider-thumb { }')", "'#a ::-webk
it-slider-thumb { }'"); |
| 120 shouldBe("parseThenSerializeRule('* ::-webkit-slider-thumb { }')", "'* *::-webki
t-slider-thumb { }'"); | 120 shouldBe("parseThenSerializeRule('* ::-webkit-slider-thumb { }')", "'* ::-webkit
-slider-thumb { }'"); |
| 121 | 121 |
| 122 debug(''); | 122 debug(''); |
| 123 | 123 |
| 124 testSelectorRoundTrip("a[b]::-webkit-slider-thumb"); | 124 testSelectorRoundTrip("a[b]::-webkit-slider-thumb"); |
| 125 testSelectorRoundTrip("a.b::-webkit-slider-thumb"); | 125 testSelectorRoundTrip("a.b::-webkit-slider-thumb"); |
| 126 testSelectorRoundTrip("a#b::-webkit-slider-thumb"); | 126 testSelectorRoundTrip("a#b::-webkit-slider-thumb"); |
| 127 testSelectorRoundTrip("a[b].c#d::-webkit-slider-thumb"); | 127 testSelectorRoundTrip("a[b].c#d::-webkit-slider-thumb"); |
| 128 | 128 |
| 129 debug(''); | 129 debug(''); |
| 130 | 130 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 158 shouldBe("parseThenSerializeRule(':before { }')", "'::before { }'"); | 158 shouldBe("parseThenSerializeRule(':before { }')", "'::before { }'"); |
| 159 shouldBe("parseThenSerializeRule(':first-letter { }')", "'::first-letter { }'"); | 159 shouldBe("parseThenSerializeRule(':first-letter { }')", "'::first-letter { }'"); |
| 160 shouldBe("parseThenSerializeRule(':first-line { }')", "'::first-line { }'"); | 160 shouldBe("parseThenSerializeRule(':first-line { }')", "'::first-line { }'"); |
| 161 shouldBe("parseThenSerializeRule(':-webkit-any( a.class1 , #id,[att
r] ) { }')","':-webkit-any(a.class1,#id,[attr]) { }'"); | 161 shouldBe("parseThenSerializeRule(':-webkit-any( a.class1 , #id,[att
r] ) { }')","':-webkit-any(a.class1,#id,[attr]) { }'"); |
| 162 | 162 |
| 163 debug(''); | 163 debug(''); |
| 164 | 164 |
| 165 </script> | 165 </script> |
| 166 </body> | 166 </body> |
| 167 </html> | 167 </html> |
| OLD | NEW |