Index: LayoutTests/editing/selection/contains-node-crash.html |
diff --git a/LayoutTests/editing/selection/contains-node-crash.html b/LayoutTests/editing/selection/contains-node-crash.html |
new file mode 100755 |
index 0000000000000000000000000000000000000000..ef0c04e93af34a058a72216d71b5fe1b4055acda |
--- /dev/null |
+++ b/LayoutTests/editing/selection/contains-node-crash.html |
@@ -0,0 +1,18 @@ |
+<!DOCTYPE html> |
+<html style="display: inline-table"> |
+<script> |
+if (window.testRunner) |
+ testRunner.dumpAsText(); |
+ |
+window.onload = function() { |
+ var selection = window.getSelection(); |
+ selection.selectAllChildren(document); |
+ selection.collapseToEnd(); |
+ var element = document.activeElement; |
+ document.open(); |
+ document.write("Pass. Test didn't crash."); |
+ document.close(); |
+ selection.containsNode(element,true); |
+} |
+</script> |
+</html> |