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

Side by Side Diff: LayoutTests/fast/dom/shadow/custom-pseudo-in-selector-api.html

Issue 82863002: Remove ::part. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/custom-pseudo-in-selector-api-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 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../resources/js-test.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 <script src="resources/shadow-dom.js"></script> 5 <script src="resources/shadow-dom.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <div id='sandbox'></div> 8 <div id='sandbox'></div>
9 <pre id='console'></pre> 9 <pre id='console'></pre>
10 <script> 10 <script>
11 description('Test for crbug.com/273960. Vendor prefixed pseudo elements should n ot cause DOM exception 12 when using querySelector, querySelectorAll and webkitM atchesSelector.'); 11 description('Test for crbug.com/273960. Vendor prefixed pseudo elements should n ot cause DOM exception 12 when using querySelector, querySelectorAll and webkitM atchesSelector.');
12 12
13 var sandbox = document.getElementById('sandbox'); 13 var sandbox = document.getElementById('sandbox');
14 14
15 sandbox.appendChild(document.createElement("input")); 15 sandbox.appendChild(document.createElement("input"));
16 shouldBeFalse('sandbox.firstChild.webkitMatchesSelector("input[type=\'search\']: :-webkit-search-decoration")'); 16 shouldBeFalse('sandbox.firstChild.webkitMatchesSelector("input[type=\'search\']: :-webkit-search-decoration")');
17 shouldBeNull('sandbox.firstChild.querySelector("input[type=\'search\']::-webkit- search-decoration")'); 17 shouldBeNull('sandbox.firstChild.querySelector("input[type=\'search\']::-webkit- search-decoration")');
18 shouldBe('sandbox.firstChild.querySelectorAll("input[type=\'search\']::-webkit-s earch-decoration").length', '0'); 18 shouldBe('sandbox.firstChild.querySelectorAll("input[type=\'search\']::-webkit-s earch-decoration").length', '0');
19 19
20 sandbox.innerHTML = ''; 20 sandbox.innerHTML = '';
21 21
22 sandbox.appendChild( 22 sandbox.appendChild(
23 createDOM('div', {'id': 'host'}, 23 createDOM('div', {'id': 'host'},
24 createShadowRoot( 24 createShadowRoot(
25 createDOM('div', {'pseudo': 'x-pseudo', 'part': 'x-part'})))); 25 createDOM('div', {'pseudo': 'x-pseudo', 'part': 'x-part'}))));
26 26
27 shouldBeFalse('sandbox.firstChild.webkitMatchesSelector("div::x-pseudo")'); 27 shouldBeFalse('sandbox.firstChild.webkitMatchesSelector("div::x-pseudo")');
28 shouldBeFalse('sandbox.firstChild.webkitMatchesSelector("div::x-part")'); 28 shouldBeFalse('sandbox.firstChild.webkitMatchesSelector("div::x-part")');
29 shouldBeFalse('sandbox.firstChild.webkitMatchesSelector("div::part(x-part)")');
30 shouldBeNull('sandbox.firstChild.querySelector("div::x-pseudo")'); 29 shouldBeNull('sandbox.firstChild.querySelector("div::x-pseudo")');
31 shouldBeNull('sandbox.firstChild.querySelector("div::x-part")'); 30 shouldBeNull('sandbox.firstChild.querySelector("div::x-part")');
32 shouldBeNull('sandbox.firstChild.querySelector("div::part(x-part)")');
33 shouldBe('sandbox.firstChild.querySelectorAll("div::x-pseudo").length', '0'); 31 shouldBe('sandbox.firstChild.querySelectorAll("div::x-pseudo").length', '0');
34 shouldBe('sandbox.firstChild.querySelectorAll("div::x-part").length', '0'); 32 shouldBe('sandbox.firstChild.querySelectorAll("div::x-part").length', '0');
35 shouldBe('sandbox.firstChild.querySelectorAll("div::part(x-part)").length', '0') ;
36 33
37 sandbox.innerHTML = ''; 34 sandbox.innerHTML = '';
38 </script> 35 </script>
39 </body> 36 </body>
40 </html> 37 </html>
41 38
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/custom-pseudo-in-selector-api-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698