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

Unified Diff: LayoutTests/editing/execCommand/crash-replacing-list-by-list.html

Issue 220233013: Don't return null from ReplaceSelectionCommand::insertAsListItems() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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
Index: LayoutTests/editing/execCommand/crash-replacing-list-by-list.html
diff --git a/LayoutTests/editing/execCommand/crash-replacing-list-by-list.html b/LayoutTests/editing/execCommand/crash-replacing-list-by-list.html
new file mode 100644
index 0000000000000000000000000000000000000000..e06fd32c114b2b0670bf095fefee9ff4d0f16416
--- /dev/null
+++ b/LayoutTests/editing/execCommand/crash-replacing-list-by-list.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<body>
+PASS if Blink doesn't crash.
+<div id="sample" contenteditable="true"><ol><li><br></li></ol></div>
+</body>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+var sample = document.getElementById('sample');
+getSelection().selectAllChildren(sample);
+document.execCommand('InsertHTML', false, '<ul>');
+sample.outerHTML = '';
+</script>

Powered by Google App Engine
This is Rietveld 408576698