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

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

Issue 1574323003: Split compound selector after consume finished. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@upload-base
Patch Set: Removed obsolete serialization hack and fixed unit tests. Created 4 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/css-selector-text-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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
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>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/css-selector-text-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698