Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: LayoutTests/fast/css/css-set-selector-text.html

Issue 1305973007: Clean up empty namespace handling and fix empty namespaces in compound selectors (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@defaultns
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 testSelectorRoundTrip(':-webkit-any(:hover)'); 147 testSelectorRoundTrip(':-webkit-any(:hover)');
148 testSelectorRoundTrip('input:-webkit-any([type="file"],:hover,:focus):enabled'); 148 testSelectorRoundTrip('input:-webkit-any([type="file"],:hover,:focus):enabled');
149 testSelectorRoundTrip(':-webkit-any(input[type="file"],a:hover,button:focus)'); 149 testSelectorRoundTrip(':-webkit-any(input[type="file"],a:hover,button:focus)');
150 testSelectorRoundTrip(':-webkit-any(.class1.class2.class3)'); 150 testSelectorRoundTrip(':-webkit-any(.class1.class2.class3)');
151 testSelectorRoundTrip(':-webkit-any(.class1:hover)'); 151 testSelectorRoundTrip(':-webkit-any(.class1:hover)');
152 testSelectorRoundTrip(':-webkit-any(a.class1.class2.class3:hover)'); 152 testSelectorRoundTrip(':-webkit-any(a.class1.class2.class3:hover)');
153 153
154 debug(''); 154 debug('');
155 155
156 shouldBe("setThenReadSelectorText('*:active')", "':active'"); 156 shouldBe("setThenReadSelectorText('*:active')", "':active'");
157 shouldBe("setThenReadSelectorText('|a')", "'a'"); 157 testSelectorRoundTrip("|a");
158 158
159 debug(''); 159 debug('');
160 160
161 shouldBe("setThenReadSelectorText('input[type=file]:focus')", "'input[type=\"fil e\"]:focus'"); 161 shouldBe("setThenReadSelectorText('input[type=file]:focus')", "'input[type=\"fil e\"]:focus'");
162 162
163 debug(''); 163 debug('');
164 164
165 shouldBe("setThenReadSelectorText('a+b')", "'a + b'"); 165 shouldBe("setThenReadSelectorText('a+b')", "'a + b'");
166 shouldBe("setThenReadSelectorText('a~b')", "'a ~ b'"); 166 shouldBe("setThenReadSelectorText('a~b')", "'a ~ b'");
167 shouldBe("setThenReadSelectorText('a>b')", "'a > b'"); 167 shouldBe("setThenReadSelectorText('a>b')", "'a > b'");
168 168
169 debug(''); 169 debug('');
170 170
171 shouldBe("setThenReadSelectorText(':after')", "'::after'"); 171 shouldBe("setThenReadSelectorText(':after')", "'::after'");
172 shouldBe("setThenReadSelectorText(':before')", "'::before'"); 172 shouldBe("setThenReadSelectorText(':before')", "'::before'");
173 shouldBe("setThenReadSelectorText(':first-letter')", "'::first-letter'"); 173 shouldBe("setThenReadSelectorText(':first-letter')", "'::first-letter'");
174 shouldBe("setThenReadSelectorText(':first-line')", "'::first-line'"); 174 shouldBe("setThenReadSelectorText(':first-line')", "'::first-line'");
175 shouldBe("setThenReadSelectorText(':-webkit-any( a.class1 , #id,[att r] )')","':-webkit-any(a.class1,#id,[attr])'"); 175 shouldBe("setThenReadSelectorText(':-webkit-any( a.class1 , #id,[att r] )')","':-webkit-any(a.class1,#id,[attr])'");
176 176
177 debug(''); 177 debug('');
178 178
179 </script> 179 </script>
180 </body> 180 </body>
181 </html> 181 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/css-selector-text-expected.txt ('k') | LayoutTests/fast/css/css-set-selector-text-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698