Index: LayoutTests/editing/execCommand/format-block-with-uneditable-crash.html |
diff --git a/LayoutTests/editing/execCommand/apply-style-empty-paragraph-start-crash.html b/LayoutTests/editing/execCommand/format-block-with-uneditable-crash.html |
similarity index 62% |
copy from LayoutTests/editing/execCommand/apply-style-empty-paragraph-start-crash.html |
copy to LayoutTests/editing/execCommand/format-block-with-uneditable-crash.html |
index 64a752bf6d062c9f7b7e032225f6e454de89bb2f..3c1a1e403b54b34c35a6589d3e1d253eff4bb58a 100644 |
--- a/LayoutTests/editing/execCommand/apply-style-empty-paragraph-start-crash.html |
+++ b/LayoutTests/editing/execCommand/format-block-with-uneditable-crash.html |
@@ -1,18 +1,19 @@ |
<!DOCTYPE html> |
+<html> |
<head> |
<script> |
if (window.testRunner) |
testRunner.dumpAsText(); |
onload = function() { |
+ document.designMode = 'on'; |
document.execCommand('SelectAll'); |
- document.execCommand('JustifyCenter'); |
+ document.execCommand('FormatBlock', false, '<pre>'); |
document.documentElement.textContent = 'PASS if Blink doesn\'t crash.'; |
-} |
+}; |
</script> |
</head> |
-<body contenteditable="true"> |
-<canvas contenteditable="false">text</canvas><b></b> |
-<textarea></textarea> |
+<body> |
+ab<embed contenteditable="false"></embed>xyz |
</body> |
</html> |