Index: LayoutTests/editing/undo/crash-delete-from-document.html |
diff --git a/LayoutTests/editing/execCommand/indent-table-cell-crash.html b/LayoutTests/editing/undo/crash-delete-from-document.html |
similarity index 51% |
copy from LayoutTests/editing/execCommand/indent-table-cell-crash.html |
copy to LayoutTests/editing/undo/crash-delete-from-document.html |
index 573bf049d27f0bfa2dea1d331e89f663654f8bc1..7674b83b138603380e2cba9b1991d271838f0cb2 100644 |
--- a/LayoutTests/editing/execCommand/indent-table-cell-crash.html |
+++ b/LayoutTests/editing/undo/crash-delete-from-document.html |
@@ -1,21 +1,24 @@ |
<!DOCTYPE html> |
<head> |
-<style> |
-hr { display: table-cell; } |
-</style> |
<script> |
if (window.testRunner) |
testRunner.dumpAsText(); |
-onload = function() { |
+window.onload = function () { |
document.designMode = 'on'; |
+ |
+ document.body.textContent = 'aaaa'; |
document.execCommand('SelectAll'); |
- document.execCommand('Indent'); |
+ document.execCommand('Italic'); |
+ window.getSelection().deleteFromDocument(); |
+ |
+ document.execCommand('Undo'); |
+ window.getSelection().deleteFromDocument(); |
+ |
document.body.textContent = 'PASS if Blink doesn\'t crash.'; |
}; |
</script> |
</head> |
<body> |
-before<hr><hr>after |
</body> |
-</html> |
+</html> |