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

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: 2014-04-03T01:25:13 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
« no previous file with comments | « no previous file | LayoutTests/editing/execCommand/crash-replacing-list-by-list-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/editing/execCommand/crash-replacing-list-by-list-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698