Index: LayoutTests/editing/execCommand/inserting-ordered-list-crash.html |
diff --git a/LayoutTests/editing/execCommand/inserting-ordered-list-crash.html b/LayoutTests/editing/execCommand/inserting-ordered-list-crash.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0c3e8fb5d5a0887e9eeae901fe5bda17681e284e |
--- /dev/null |
+++ b/LayoutTests/editing/execCommand/inserting-ordered-list-crash.html |
@@ -0,0 +1,21 @@ |
+<!DOCTYPE html> |
+<html> |
+<body> |
+<input> |
+<hr> |
+> |
+<script> |
+ if (window.testRunner) |
+ testRunner.dumpAsText(); |
+ |
+ document.designMode = 'on'; |
+ document.execCommand('SelectAll'); |
+ document.execCommand('Strikethrough'); |
+ document.execCommand('InsertOrderedList', false); |
yosin_UTC9
2014/02/27 01:38:40
nit: We don't need to have |false|, default value
arpitab_
2014/02/27 06:56:11
Done.
|
+ window.getSelection().deleteFromDocument(); |
+ document.execCommand('SelectAll'); |
+ document.execCommand('Strikethrough'); |
+ document.write('The test passes if the page does not crash.'); |
+</script> |
+</body> |
+</html> |