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

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

Issue 1607873002: Serialize namespaced type/* selectors according to CSSOM spec. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@queryselector-no-pseudoelm-20160118
Patch Set: Rebased Created 4 years, 10 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 testSelectorRoundTrip('[a]'); 53 testSelectorRoundTrip('[a]');
54 testSelectorRoundTrip('[a="b"]'); 54 testSelectorRoundTrip('[a="b"]');
55 testSelectorRoundTrip('[a~="b"]'); 55 testSelectorRoundTrip('[a~="b"]');
56 testSelectorRoundTrip('[a|="b"]'); 56 testSelectorRoundTrip('[a|="b"]');
57 testSelectorRoundTrip('[a^="b"]'); 57 testSelectorRoundTrip('[a^="b"]');
58 testSelectorRoundTrip('[a$="b"]'); 58 testSelectorRoundTrip('[a$="b"]');
59 testSelectorRoundTrip('[a*="b"]'); 59 testSelectorRoundTrip('[a*="b"]');
60 60
61 debug(''); 61 debug('');
62 62
63 testSelectorRoundTrip('*|a'); 63 shouldBe("setThenReadSelectorText('*|a')", "'a'");
64 testSelectorRoundTrip('n|a'); 64 testSelectorRoundTrip('n|a');
65 testSelectorRoundTrip('*|*'); 65 shouldBe("setThenReadSelectorText('*|*')", "'*'");
66 testSelectorRoundTrip('n|*'); 66 testSelectorRoundTrip('n|*');
67 testSelectorRoundTrip('[*|a]'); 67 testSelectorRoundTrip('[*|a]');
68 testSelectorRoundTrip('[n|a]'); 68 testSelectorRoundTrip('[n|a]');
69 testSelectorRoundTrip('unresolved|a', true); 69 testSelectorRoundTrip('unresolved|a', true);
70 testSelectorRoundTrip('unresolved|*', true); 70 testSelectorRoundTrip('unresolved|*', true);
71 testSelectorRoundTrip('[unresolved|a]', true); 71 testSelectorRoundTrip('[unresolved|a]', true);
72 72
73 debug(''); 73 debug('');
74 74
75 testSelectorRoundTrip('a:active'); 75 testSelectorRoundTrip('a:active');
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 shouldBe("setThenReadSelectorText(':before')", "'::before'"); 177 shouldBe("setThenReadSelectorText(':before')", "'::before'");
178 shouldBe("setThenReadSelectorText(':first-letter')", "'::first-letter'"); 178 shouldBe("setThenReadSelectorText(':first-letter')", "'::first-letter'");
179 shouldBe("setThenReadSelectorText(':first-line')", "'::first-line'"); 179 shouldBe("setThenReadSelectorText(':first-line')", "'::first-line'");
180 shouldBe("setThenReadSelectorText(':-webkit-any( a.class1 , #id,[att r] )')","':-webkit-any(a.class1,#id,[attr])'"); 180 shouldBe("setThenReadSelectorText(':-webkit-any( a.class1 , #id,[att r] )')","':-webkit-any(a.class1,#id,[attr])'");
181 181
182 debug(''); 182 debug('');
183 183
184 </script> 184 </script>
185 </body> 185 </body>
186 </html> 186 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698