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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Range/resources/intersectsNode.js

Issue 1364683003: Range.intersectsNode() does not behave according to the specification. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed comments Created 5 years, 3 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
Index: third_party/WebKit/LayoutTests/fast/dom/Range/resources/intersectsNode.js
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Range/resources/intersectsNode.js b/third_party/WebKit/LayoutTests/fast/dom/Range/resources/intersectsNode.js
index 10122b0cbf31657dd7a0a71c55b8e4b3ac53a5a0..2e15cb6ca00dbac901c534512fd720a43a02f9e7 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/Range/resources/intersectsNode.js
+++ b/third_party/WebKit/LayoutTests/fast/dom/Range/resources/intersectsNode.js
@@ -109,7 +109,8 @@ debug("");
debug("2.3 Node has no parent");
range.selectNode(document.getElementById("a2"));
-shouldThrow("range.intersectsNode(document)");
+intersects = range.intersectsNode(document);
+shouldBeTrue("intersects");
debug("");
debug("2.4 Range has no parent");

Powered by Google App Engine
This is Rietveld 408576698