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

Unified Diff: LayoutTests/editing/selection/contains-node-cleared-document.html

Issue 212873002: Remove Selection.containsNode assertion that is not valid. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix spacing Created 6 years, 9 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/editing/selection/contains-node-cleared-document-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/selection/contains-node-cleared-document.html
diff --git a/LayoutTests/editing/selection/contains-node-crash.html b/LayoutTests/editing/selection/contains-node-cleared-document.html
similarity index 60%
copy from LayoutTests/editing/selection/contains-node-crash.html
copy to LayoutTests/editing/selection/contains-node-cleared-document.html
index ef0c04e93af34a058a72216d71b5fe1b4055acda..8180f92fa19f9d211ee167b7ae3042edce4d1111 100644
--- a/LayoutTests/editing/selection/contains-node-crash.html
+++ b/LayoutTests/editing/selection/contains-node-cleared-document.html
@@ -1,5 +1,4 @@
-<!DOCTYPE html>
-<html style="display: inline-table">
+<html>
<script>
if (window.testRunner)
testRunner.dumpAsText();
@@ -9,10 +8,13 @@ window.onload = function() {
selection.selectAllChildren(document);
selection.collapseToEnd();
var element = document.activeElement;
+ var parent = element.parentNode;
document.open();
- document.write("Pass. Test didn't crash.");
+ if (selection.containsNode(element, true))
+ document.write("FAIL: selection.containsNode should return false");
+ else
+ document.write("PASS");
document.close();
- selection.containsNode(element,true);
}
</script>
</html>
« no previous file with comments | « no previous file | LayoutTests/editing/selection/contains-node-cleared-document-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698