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

Unified Diff: LayoutTests/fast/dom/shadow/contains-with-shadow-dom.html

Issue 21123005: Node.contains should return true for nodes in Shadow DOM. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Make contains-something condition clearer. Created 7 years, 5 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/contains-with-shadow-dom-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/shadow/contains-with-shadow-dom.html
diff --git a/LayoutTests/fast/dom/shadow/contains-with-shadow-dom.html b/LayoutTests/fast/dom/shadow/contains-with-shadow-dom.html
index fc4cd26f71628635360d5dd0becb8ff77090c347..3569c45b2701d2388adf1548f52a31e267eb6ef3 100644
--- a/LayoutTests/fast/dom/shadow/contains-with-shadow-dom.html
+++ b/LayoutTests/fast/dom/shadow/contains-with-shadow-dom.html
@@ -22,9 +22,9 @@ document.getElementById('sandbox').appendChild(
// Comparing a document with a node in a shadow tree.
-shouldBeFalse('document.contains(getNodeInShadowTreeStack("shadowHostA/"))');
+shouldBeTrue('document.contains(getNodeInShadowTreeStack("shadowHostA/"))');
shouldBeFalse('getNodeInShadowTreeStack("shadowHostA/").contains(document)');
-shouldBeFalse('document.contains(getNodeInShadowTreeStack("shadowHostA/divA"))');
+shouldBeTrue('document.contains(getNodeInShadowTreeStack("shadowHostA/divA"))');
shouldBeFalse('getNodeInShadowTreeStack("shadowHostA/divA").contains(document)');
// Comparing a node in document with a node in a shadow tree.
@@ -32,7 +32,7 @@ shouldBeTrue('getNodeInShadowTreeStack("shadowHostA/").contains(getNodeInShadowT
shouldBeFalse('getNodeInShadowTreeStack("shadowHostA/divA").contains(getNodeInShadowTreeStack("shadowHostA/"))');
// Comparing a node in a shadow tree with a node in a shadow tree enclosing the first tree.
-shouldBeFalse('getNodeInShadowTreeStack("shadowHostA/").contains(getNodeInShadowTreeStack("shadowHostA/shadowHostB/"))');
+shouldBeTrue('getNodeInShadowTreeStack("shadowHostA/").contains(getNodeInShadowTreeStack("shadowHostA/shadowHostB/"))');
shouldBeFalse('getNodeInShadowTreeStack("shadowHostA/shadowHostB/").contains(getNodeInShadowTreeStack("shadowHostA/"))');
shouldBeFalse('getNodeInShadowTreeStack("shadowHostA/divA").contains(getNodeInShadowTreeStack("shadowHostA/shadowHostB/divB"))');
shouldBeFalse('getNodeInShadowTreeStack("shadowHostA/shadowHostB/divB").contains(getNodeInShadowTreeStack("shadowHostA/divA"))');
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/contains-with-shadow-dom-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698