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 setting and re-serialization of some CSS selectors."); | 8 description("This tests setting and re-serialization of some CSS selectors."); |
9 | 9 |
10 var bogusSelector = "_foo"; | 10 var bogusSelector = "_foo"; |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 testSelectorRoundTrip("::selection"); | 109 testSelectorRoundTrip("::selection"); |
110 | 110 |
111 debug(''); | 111 debug(''); |
112 | 112 |
113 testSelectorRoundTrip(":-webkit-any-link"); | 113 testSelectorRoundTrip(":-webkit-any-link"); |
114 testSelectorRoundTrip(":-webkit-autofill"); | 114 testSelectorRoundTrip(":-webkit-autofill"); |
115 testSelectorRoundTrip(":-webkit-drag"); | 115 testSelectorRoundTrip(":-webkit-drag"); |
116 | 116 |
117 debug(''); | 117 debug(''); |
118 | 118 |
119 shouldBe("setThenReadSelectorText('::-webkit-file-upload-button')", "'*::-webkit
-file-upload-button'"); | 119 shouldBe("setThenReadSelectorText('::-webkit-file-upload-button')", "'::-webkit-
file-upload-button'"); |
120 shouldBe("setThenReadSelectorText('::-webkit-search-cancel-button')", "'*::-webk
it-search-cancel-button'"); | 120 shouldBe("setThenReadSelectorText('::-webkit-search-cancel-button')", "'::-webki
t-search-cancel-button'"); |
121 shouldBe("setThenReadSelectorText('::-webkit-search-decoration')", "'*::-webkit-
search-decoration'"); | 121 shouldBe("setThenReadSelectorText('::-webkit-search-decoration')", "'::-webkit-s
earch-decoration'"); |
122 shouldBe("setThenReadSelectorText('::-webkit-search-results-button')", "'*::-web
kit-search-results-button'"); | 122 shouldBe("setThenReadSelectorText('::-webkit-search-results-button')", "'::-webk
it-search-results-button'"); |
123 shouldBe("setThenReadSelectorText('::-webkit-search-results-decoration')", "'*::
-webkit-search-results-decoration'"); | 123 shouldBe("setThenReadSelectorText('::-webkit-search-results-decoration')", "'::-
webkit-search-results-decoration'"); |
124 shouldBe("setThenReadSelectorText('::-webkit-slider-thumb')", "'*::-webkit-slide
r-thumb'"); | 124 shouldBe("setThenReadSelectorText('::-webkit-slider-thumb')", "'::-webkit-slider
-thumb'"); |
125 | 125 |
126 debug(''); | 126 debug(''); |
127 | 127 |
128 testSelectorRoundTrip("a::-webkit-slider-thumb"); | 128 testSelectorRoundTrip("a::-webkit-slider-thumb"); |
129 shouldBe("setThenReadSelectorText('a ::-webkit-slider-thumb')", "'a *::-webkit-s
lider-thumb'"); | 129 shouldBe("setThenReadSelectorText('a ::-webkit-slider-thumb')", "'a ::-webkit-sl
ider-thumb'"); |
130 testSelectorRoundTrip("[a]::-webkit-slider-thumb"); | 130 testSelectorRoundTrip("[a]::-webkit-slider-thumb"); |
131 shouldBe("setThenReadSelectorText('[a] ::-webkit-slider-thumb')", "'[a] *::-webk
it-slider-thumb'"); | 131 shouldBe("setThenReadSelectorText('[a] ::-webkit-slider-thumb')", "'[a] ::-webki
t-slider-thumb'"); |
132 testSelectorRoundTrip(".a::-webkit-slider-thumb"); | 132 testSelectorRoundTrip(".a::-webkit-slider-thumb"); |
133 shouldBe("setThenReadSelectorText('.a ::-webkit-slider-thumb')", "'.a *::-webkit
-slider-thumb'"); | 133 shouldBe("setThenReadSelectorText('.a ::-webkit-slider-thumb')", "'.a ::-webkit-
slider-thumb'"); |
134 testSelectorRoundTrip("#a::-webkit-slider-thumb"); | 134 testSelectorRoundTrip("#a::-webkit-slider-thumb"); |
135 shouldBe("setThenReadSelectorText('#a ::-webkit-slider-thumb')", "'#a *::-webkit
-slider-thumb'"); | 135 shouldBe("setThenReadSelectorText('#a ::-webkit-slider-thumb')", "'#a ::-webkit-
slider-thumb'"); |
136 shouldBe("setThenReadSelectorText('* ::-webkit-slider-thumb')", "'* *::-webkit-s
lider-thumb'"); | 136 shouldBe("setThenReadSelectorText('* ::-webkit-slider-thumb')", "'* ::-webkit-sl
ider-thumb'"); |
137 | 137 |
138 debug(''); | 138 debug(''); |
139 | 139 |
140 testSelectorRoundTrip("a[b]::-webkit-slider-thumb"); | 140 testSelectorRoundTrip("a[b]::-webkit-slider-thumb"); |
141 testSelectorRoundTrip("a.b::-webkit-slider-thumb"); | 141 testSelectorRoundTrip("a.b::-webkit-slider-thumb"); |
142 testSelectorRoundTrip("a#b::-webkit-slider-thumb"); | 142 testSelectorRoundTrip("a#b::-webkit-slider-thumb"); |
143 testSelectorRoundTrip("a[b].c#d::-webkit-slider-thumb"); | 143 testSelectorRoundTrip("a[b].c#d::-webkit-slider-thumb"); |
144 | 144 |
145 debug(''); | 145 debug(''); |
146 | 146 |
(...skipping 27 matching lines...) Expand all Loading... |
174 shouldBe("setThenReadSelectorText(':before')", "'::before'"); | 174 shouldBe("setThenReadSelectorText(':before')", "'::before'"); |
175 shouldBe("setThenReadSelectorText(':first-letter')", "'::first-letter'"); | 175 shouldBe("setThenReadSelectorText(':first-letter')", "'::first-letter'"); |
176 shouldBe("setThenReadSelectorText(':first-line')", "'::first-line'"); | 176 shouldBe("setThenReadSelectorText(':first-line')", "'::first-line'"); |
177 shouldBe("setThenReadSelectorText(':-webkit-any( a.class1 , #id,[att
r] )')","':-webkit-any(a.class1,#id,[attr])'"); | 177 shouldBe("setThenReadSelectorText(':-webkit-any( a.class1 , #id,[att
r] )')","':-webkit-any(a.class1,#id,[attr])'"); |
178 | 178 |
179 debug(''); | 179 debug(''); |
180 | 180 |
181 </script> | 181 </script> |
182 </body> | 182 </body> |
183 </html> | 183 </html> |
OLD | NEW |