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

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

Issue 187573002: Revert "Reverting custom pseudo element". (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/shadow/custom-pseudo-in-selector-api.html
diff --git a/LayoutTests/fast/dom/shadow/custom-pseudo-in-selector-api.html b/LayoutTests/fast/dom/shadow/custom-pseudo-in-selector-api.html
index d75d8d738368ab40cd7fff91301a3fc95c7b1b9a..ccda1a6f9431708eea9624247c929055ba8145ba 100644
--- a/LayoutTests/fast/dom/shadow/custom-pseudo-in-selector-api.html
+++ b/LayoutTests/fast/dom/shadow/custom-pseudo-in-selector-api.html
@@ -18,6 +18,20 @@ shouldBeNull('sandbox.firstChild.querySelector("input[type=\'search\']::-webkit-
shouldBe('sandbox.firstChild.querySelectorAll("input[type=\'search\']::-webkit-search-decoration").length', '0');
sandbox.innerHTML = '';
+
+sandbox.appendChild(
+ createDOM('div', {'id': 'host'},
+ createShadowRoot(
+ createDOM('div', {'pseudo': 'x-pseudo', 'part': 'x-part'}))));
+
+shouldBeFalse('sandbox.firstChild.webkitMatchesSelector("div::x-pseudo")');
+shouldBeFalse('sandbox.firstChild.webkitMatchesSelector("div::x-part")');
+shouldBeNull('sandbox.firstChild.querySelector("div::x-pseudo")');
+shouldBeNull('sandbox.firstChild.querySelector("div::x-part")');
+shouldBe('sandbox.firstChild.querySelectorAll("div::x-pseudo").length', '0');
+shouldBe('sandbox.firstChild.querySelectorAll("div::x-part").length', '0');
+
+sandbox.innerHTML = '';
</script>
</body>
</html>
« 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