Chromium Code Reviews| 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..86485e9736f086ec248cf6bc90a8eeb2dfe75e17 |
| --- /dev/null |
| +++ b/LayoutTests/editing/execCommand/inserting-ordered-list-crash.html |
| @@ -0,0 +1,21 @@ |
| +<!DOCTYPE html> |
| +<html> |
| +<body> |
| +<input> |
| +<hr> |
| +> |
|
arpitab_
2014/02/28 14:02:55
Required for reproducing the crash.
|
| +<script> |
| + if (window.testRunner) |
| + testRunner.dumpAsText(); |
| + |
| + document.designMode = 'on'; |
| + document.execCommand('SelectAll'); |
| + document.execCommand('Strikethrough'); |
| + document.execCommand('InsertOrderedList'); |
| + window.getSelection().deleteFromDocument(); |
| + document.execCommand('SelectAll'); |
| + document.execCommand('Strikethrough'); |
| + document.write('The test passes if the page does not crash.'); |
| +</script> |
| +</body> |
| +</html> |