Index: LayoutTests/editing/execCommand/delete-hidden-crash.html |
diff --git a/LayoutTests/editing/execCommand/delete-hidden-crash.html b/LayoutTests/editing/execCommand/delete-hidden-crash.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..02b9dc4ebeaa23c9de925d448fafd540bf2ef318 |
--- /dev/null |
+++ b/LayoutTests/editing/execCommand/delete-hidden-crash.html |
@@ -0,0 +1,29 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<script> |
+if (window.testRunner) |
+ testRunner.dumpAsText(); |
+ |
+onload = function() { |
+ document.execCommand('SelectAll') |
+ span = document.getElementsByTagName('span')[0]; |
+ span.contentEditable = 'true'; |
+ span.textContent = 'bar'; |
+ document.execCommand('InsertText', false, '1'); |
+ document.body.textContent = 'PASS if Blink doesn\'t crash.'; |
+}; |
+</script> |
+<style> |
+* { visibility:visible; } |
+.inline { display:inline; } |
+*:only-child { visibility:hidden; } |
+</style> |
+</head> |
+<body> |
+<table> |
+<tr><td><span><table></table><span></span></span></td></tr> |
+<tr><td><td class="inline">foo</td></tr> |
+</table> |
+</body> |
+</html> |