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

Unified Diff: LayoutTests/editing/execCommand/unlistify-body-crash.html

Issue 303743003: Check null position start of paragraph to move parameter in CompositeEditCommand::moveParagraph (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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/unlistify-body-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/execCommand/unlistify-body-crash.html
diff --git a/LayoutTests/editing/execCommand/unlistify-body-crash.html b/LayoutTests/editing/execCommand/unlistify-body-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..1ab1cb19431761b9126ede16293bc3ea16aa1add
--- /dev/null
+++ b/LayoutTests/editing/execCommand/unlistify-body-crash.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+function doReplace(tagName) {
+ var oldElement = document.getElementById(tagName);
+ var newElement = document.createElement(tagName);
+ while (oldElement.firstChild) {
+ newElement.appendChild(oldElement.firstChild);
+ }
+ oldElement.parentNode.replaceChild(newElement, oldElement);
+}
+onload = function() {
+ doReplace('body');
+
+ document.designMode = 'on';
+ getSelection().collapse(document.querySelector('li'), 1);
+ document.execCommand('InsertUnorderedList');
+ document.documentElement.textContent = 'PASS if Blink doesn\'t crash.';
+};
+</script>
+</head>
+<body>
+<h6><ul><li><div id="body"><h6>bar<ul></ul></h6></div><br></li></ul></h6>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/editing/execCommand/unlistify-body-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698