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 64% |
copy from LayoutTests/editing/selection/contains-node-crash.html |
copy to LayoutTests/editing/selection/contains-node-cleared-document.html |
index ef0c04e93af34a058a72216d71b5fe1b4055acda..d73856642f24f6388ec1490ef6e5f91cde25653f 100644 |
--- a/LayoutTests/editing/selection/contains-node-crash.html |
+++ b/LayoutTests/editing/selection/contains-node-cleared-document.html |
@@ -9,10 +9,13 @@ window.onload = function() { |
selection.selectAllChildren(document); |
selection.collapseToEnd(); |
var element = document.activeElement; |
+ var parent = element.parentNode; |
document.open(); |
haraken
2014/03/26 13:06:30
I'm not sure if it's needed to open the document t
Mads Ager (chromium)
2014/03/26 13:18:00
This is pretty minimal. It is needed to open the d
|
- document.write("Pass. Test didn't crash."); |
+ if (selection.containsNode(element,true)) |
haraken
2014/03/26 13:06:30
You can just write:
shouldBeFalse("selection.co
Mads Ager (chromium)
2014/03/26 13:18:00
Unfortunately, that does not work. Probably becaus
|
+ document.write("FAIL: selection.containsNode should return false"); |
+ else |
+ document.write("PASS"); |
document.close(); |
- selection.containsNode(element,true); |
} |
</script> |
</html> |