Index: LayoutTests/editing/execCommand/insert-tab-to-html-element-crash.html |
diff --git a/LayoutTests/editing/execCommand/insert-tab-to-html-element-crash.html b/LayoutTests/editing/execCommand/insert-tab-to-html-element-crash.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..78d0b16afcd0b2f18a9d0e3015acfee5d9f2f1f8 |
--- /dev/null |
+++ b/LayoutTests/editing/execCommand/insert-tab-to-html-element-crash.html |
@@ -0,0 +1,18 @@ |
+<!DOCTYPE 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.documentElement.textContent = 'PASS if Blink doesn\'t crash.'; |
+} |
+</script> |
+</head> |
+<body> |
+</body> |
+</html> |