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

Unified Diff: LayoutTests/editing/execCommand/justify-center-empty-list-crash.html

Issue 300023009: Get rid of false assert from CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary (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
Index: LayoutTests/editing/execCommand/justify-center-empty-list-crash.html
diff --git a/LayoutTests/editing/execCommand/justify-center-empty-list-crash.html b/LayoutTests/editing/execCommand/justify-center-empty-list-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..760f54d28b5350573dac0173529857542da1e485
--- /dev/null
+++ b/LayoutTests/editing/execCommand/justify-center-empty-list-crash.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+onload = function() {
+ document.designMode = "on";
+ document.execCommand("SelectAll");
+ document.execCommand("JustifyCenter");
+ document.body.textContent = 'PASS if Blink doesn\'t crash.';
+};
+</script>
+</head>
+<body>
+<ul style="height: 20px;"></ul>
+<div>
+ <div></div>
+ <a target="foo">more</a>
+</div>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698