Index: LayoutTests/editing/execCommand/justify-center-empty-list-crash.html |
diff --git a/LayoutTests/editing/execCommand/justify-center-empty-list-crash.html b/LayoutTests/editing/execCommand/justify-center-empty-list-crash.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..760f54d28b5350573dac0173529857542da1e485 |
--- /dev/null |
+++ b/LayoutTests/editing/execCommand/justify-center-empty-list-crash.html |
@@ -0,0 +1,23 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<script> |
+if (window.testRunner) |
+ testRunner.dumpAsText(); |
+ |
+onload = function() { |
+ document.designMode = "on"; |
+ document.execCommand("SelectAll"); |
+ document.execCommand("JustifyCenter"); |
+ document.body.textContent = 'PASS if Blink doesn\'t crash.'; |
+}; |
+</script> |
+</head> |
+<body> |
+<ul style="height: 20px;"></ul> |
+<div> |
+ <div></div> |
+ <a target="foo">more</a> |
+</div> |
+</body> |
+</html> |