Index: LayoutTests/editing/execCommand/indent-no-visible-contents-crash.html |
diff --git a/LayoutTests/editing/execCommand/indent-no-visible-contents-crash.html b/LayoutTests/editing/execCommand/indent-no-visible-contents-crash.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..042dfe48ec4d40c3337ec2dacbcf0994e5507919 |
--- /dev/null |
+++ b/LayoutTests/editing/execCommand/indent-no-visible-contents-crash.html |
@@ -0,0 +1,13 @@ |
+<!DOCTYPE html> |
+<html> |
+<body> |
+<div contenteditable="true" id="target"><span></span></div> |
+</body> |
+<script> |
+if (window.testRunner) |
+ testRunner.dumpAsText(); |
+getSelection().collapse(document.getElementById('target'), 0); |
+document.execCommand('Indent'); |
+document.body.textContent = 'PASS if Blink doesn\'t crash.'; |
+</script> |
+</html> |