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

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

Issue 8931002: Merge 101998 - "Raw" pseudo selectors don't match if immediately after a child or descendant comb... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/963/
Patch Set: Created 9 years 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="../js/resources/js-test-pre.js"></script> 3 <script src="../js/resources/js-test-pre.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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 testSelectorRoundTrip("::selection"); 107 testSelectorRoundTrip("::selection");
108 108
109 debug(''); 109 debug('');
110 110
111 testSelectorRoundTrip(":-webkit-any-link"); 111 testSelectorRoundTrip(":-webkit-any-link");
112 testSelectorRoundTrip(":-webkit-autofill"); 112 testSelectorRoundTrip(":-webkit-autofill");
113 testSelectorRoundTrip(":-webkit-drag"); 113 testSelectorRoundTrip(":-webkit-drag");
114 114
115 debug(''); 115 debug('');
116 116
117 testSelectorRoundTrip("::-webkit-file-upload-button"); 117 shouldBe("setThenReadSelectorText('::-webkit-file-upload-button')", "'*::-webkit -file-upload-button'");
118 testSelectorRoundTrip("::-webkit-search-cancel-button"); 118 shouldBe("setThenReadSelectorText('::-webkit-search-cancel-button')", "'*::-webk it-search-cancel-button'");
119 testSelectorRoundTrip("::-webkit-search-decoration"); 119 shouldBe("setThenReadSelectorText('::-webkit-search-decoration')", "'*::-webkit- search-decoration'");
120 testSelectorRoundTrip("::-webkit-search-results-button"); 120 shouldBe("setThenReadSelectorText('::-webkit-search-results-button')", "'*::-web kit-search-results-button'");
121 testSelectorRoundTrip("::-webkit-search-results-decoration"); 121 shouldBe("setThenReadSelectorText('::-webkit-search-results-decoration')", "'*:: -webkit-search-results-decoration'");
122 testSelectorRoundTrip("::-webkit-slider-thumb"); 122 shouldBe("setThenReadSelectorText('::-webkit-slider-thumb')", "'*::-webkit-slide r-thumb'");
123 123
124 debug(''); 124 debug('');
125 125
126 testSelectorRoundTrip("a::-webkit-slider-thumb"); 126 testSelectorRoundTrip("a::-webkit-slider-thumb");
127 testSelectorRoundTrip("a ::-webkit-slider-thumb"); 127 shouldBe("setThenReadSelectorText('a ::-webkit-slider-thumb')", "'a *::-webkit-s lider-thumb'");
128 testSelectorRoundTrip("[a]::-webkit-slider-thumb"); 128 testSelectorRoundTrip("[a]::-webkit-slider-thumb");
129 testSelectorRoundTrip("[a] ::-webkit-slider-thumb"); 129 shouldBe("setThenReadSelectorText('[a] ::-webkit-slider-thumb')", "'[a] *::-webk it-slider-thumb'");
130 testSelectorRoundTrip(".a::-webkit-slider-thumb"); 130 testSelectorRoundTrip(".a::-webkit-slider-thumb");
131 testSelectorRoundTrip(".a ::-webkit-slider-thumb"); 131 shouldBe("setThenReadSelectorText('.a ::-webkit-slider-thumb')", "'.a *::-webkit -slider-thumb'");
132 testSelectorRoundTrip("#a::-webkit-slider-thumb"); 132 testSelectorRoundTrip("#a::-webkit-slider-thumb");
133 testSelectorRoundTrip("#a ::-webkit-slider-thumb"); 133 shouldBe("setThenReadSelectorText('#a ::-webkit-slider-thumb')", "'#a *::-webkit -slider-thumb'");
134 shouldBe("setThenReadSelectorText('* ::-webkit-slider-thumb')", "'* *::-webkit-s lider-thumb'");
135
136 debug('');
137
138 testSelectorRoundTrip("a[b]::-webkit-slider-thumb");
139 testSelectorRoundTrip("a.b::-webkit-slider-thumb");
140 testSelectorRoundTrip("a#b::-webkit-slider-thumb");
141 testSelectorRoundTrip("a[b].c#d::-webkit-slider-thumb");
134 142
135 debug(''); 143 debug('');
136 144
137 testSelectorRoundTrip('input:not([type="file"]):focus'); 145 testSelectorRoundTrip('input:not([type="file"]):focus');
138 testSelectorRoundTrip(':-webkit-any([type="file"])'); 146 testSelectorRoundTrip(':-webkit-any([type="file"])');
139 testSelectorRoundTrip(':-webkit-any(:hover)'); 147 testSelectorRoundTrip(':-webkit-any(:hover)');
140 testSelectorRoundTrip('input:-webkit-any([type="file"],:hover,:focus):enabled'); 148 testSelectorRoundTrip('input:-webkit-any([type="file"],:hover,:focus):enabled');
141 testSelectorRoundTrip(':-webkit-any(input[type="file"],a:hover,button:focus)'); 149 testSelectorRoundTrip(':-webkit-any(input[type="file"],a:hover,button:focus)');
142 testSelectorRoundTrip(':-webkit-any(.class1.class2.class3)'); 150 testSelectorRoundTrip(':-webkit-any(.class1.class2.class3)');
143 testSelectorRoundTrip(':-webkit-any(.class1:hover)'); 151 testSelectorRoundTrip(':-webkit-any(.class1:hover)');
(...skipping 21 matching lines...) Expand all
165 shouldBe("setThenReadSelectorText(':first-letter')", "'::first-letter'"); 173 shouldBe("setThenReadSelectorText(':first-letter')", "'::first-letter'");
166 shouldBe("setThenReadSelectorText(':first-line')", "'::first-line'"); 174 shouldBe("setThenReadSelectorText(':first-line')", "'::first-line'");
167 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])'");
168 176
169 debug(''); 177 debug('');
170 178
171 </script> 179 </script>
172 <script src="../js/resources/js-test-post.js"></script> 180 <script src="../js/resources/js-test-post.js"></script>
173 </body> 181 </body>
174 </html> 182 </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