Index: LayoutTests/editing/execCommand/format-block-with-uneditable-crash-2.html |
diff --git a/LayoutTests/editing/execCommand/insert-tab-to-html-element-crash.html b/LayoutTests/editing/execCommand/format-block-with-uneditable-crash-2.html |
similarity index 61% |
copy from LayoutTests/editing/execCommand/insert-tab-to-html-element-crash.html |
copy to LayoutTests/editing/execCommand/format-block-with-uneditable-crash-2.html |
index 78d0b16afcd0b2f18a9d0e3015acfee5d9f2f1f8..e95f2ca89d170c66dc2221d59d668ee5fe1bc0df 100644 |
--- a/LayoutTests/editing/execCommand/insert-tab-to-html-element-crash.html |
+++ b/LayoutTests/editing/execCommand/format-block-with-uneditable-crash-2.html |
@@ -1,18 +1,18 @@ |
<!DOCTYPE html> |
+<html> |
<head> |
<script> |
if (window.testRunner) |
testRunner.dumpAsText(); |
- |
onload = function() { |
- getSelection().collapse(document.body, 0); |
- document.body.parentNode.removeChild(document.body); |
document.designMode = 'on'; |
- document.execCommand("InsertText", false, '\t'); |
+ document.execCommand('SelectAll'); |
+ document.execCommand('FormatBlock', false, '<pre>'); |
document.documentElement.textContent = 'PASS if Blink doesn\'t crash.'; |
-} |
+}; |
</script> |
</head> |
<body> |
+ab<embed contenteditable="false"><svg>xyz</svg></embed> |
</body> |
</html> |