Index: third_party/WebKit/LayoutTests/editing/execCommand/unlistify-uneditable-parent-crash.html |
diff --git a/third_party/WebKit/LayoutTests/editing/spelling/mark-empty-crash.html b/third_party/WebKit/LayoutTests/editing/execCommand/unlistify-uneditable-parent-crash.html |
similarity index 51% |
copy from third_party/WebKit/LayoutTests/editing/spelling/mark-empty-crash.html |
copy to third_party/WebKit/LayoutTests/editing/execCommand/unlistify-uneditable-parent-crash.html |
index bf49b827b40979144d226749b7e0fb87808169e0..cf605cce6095ab3e2a27a8ded53f63c48baf2d25 100644 |
--- a/third_party/WebKit/LayoutTests/editing/spelling/mark-empty-crash.html |
+++ b/third_party/WebKit/LayoutTests/editing/execCommand/unlistify-uneditable-parent-crash.html |
@@ -1,15 +1,14 @@ |
<!DOCTYPE html> |
<script src="../../resources/testharness.js"></script> |
<script src="../../resources/testharnessreport.js"></script> |
-<ul contenteditable> |
-<li id="foo"></li> |
-</ul> |
+<div> |
+<ol contenteditable id=sample> |
+<li>foo</li> |
+</ol> |
+<div id="log"></div> |
<script> |
test(function() { |
- if (!window.internals) |
- return; |
- internals.settings.setUnifiedTextCheckerEnabled(true); |
- window.getSelection().selectAllChildren(document.getElementById('foo')); |
- document.execCommand('insertParagraph'); |
-}, 'spelling'); |
+ window.getSelection().selectAllChildren(document.getElementById('sample')); |
+ document.execCommand('insertOrderedList'); |
+}, 'insertOrderedList should not crash with uneditable parent'); |
</script> |