Index: LayoutTests/editing/execCommand/crash-replacing-list-by-list.html |
diff --git a/LayoutTests/editing/execCommand/crash-replacing-list-by-list.html b/LayoutTests/editing/execCommand/crash-replacing-list-by-list.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e06fd32c114b2b0670bf095fefee9ff4d0f16416 |
--- /dev/null |
+++ b/LayoutTests/editing/execCommand/crash-replacing-list-by-list.html |
@@ -0,0 +1,13 @@ |
+<!DOCTYPE html> |
+<body> |
+PASS if Blink doesn't crash. |
+<div id="sample" contenteditable="true"><ol><li><br></li></ol></div> |
+</body> |
+<script> |
+if (window.testRunner) |
+ testRunner.dumpAsText(); |
+var sample = document.getElementById('sample'); |
+getSelection().selectAllChildren(sample); |
+document.execCommand('InsertHTML', false, '<ul>'); |
+sample.outerHTML = ''; |
+</script> |