Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(652)

Unified Diff: LayoutTests/editing/execCommand/inserting-ordered-list-crash.html

Issue 181103004: Fixing crash when executing ApplyStyle command. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixing nit Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/editing/execCommand/inserting-ordered-list-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
+>
+<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>
« no previous file with comments | « no previous file | LayoutTests/editing/execCommand/inserting-ordered-list-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698