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

Unified Diff: LayoutTests/editing/execCommand/insert-list-infinite-loop2.html

Issue 1285103002: [Editing] Make loop condition in insertOrderedList::doApply strict. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: nit pick Created 5 years, 4 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 | Source/core/editing/commands/InsertListCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/execCommand/insert-list-infinite-loop2.html
diff --git a/LayoutTests/editing/execCommand/insert-list-infinite-loop2.html b/LayoutTests/editing/execCommand/insert-list-infinite-loop2.html
new file mode 100644
index 0000000000000000000000000000000000000000..2a11d33a0b526ee648b8abeec6aa2a07b27d4724
--- /dev/null
+++ b/LayoutTests/editing/execCommand/insert-list-infinite-loop2.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<body>
+<div id="log"></div>
+<table contenteditable="true"><tbody><tr><td>
+ <table><tbody><tr><td>
+ <ol id="ol"><li>AAA<br><br></li><li><br></li><li>BBB<br>CCC</li></ol>
+ </td></tr></tbody></table>
+ DDD<div style="-webkit-user-select: none;"></div><div style="display: inline-block; border:solid;"></div>
+</td></tr></tbody></table>
+<script>
+test(function () {
+ getSelection().selectAllChildren(ol);
+ document.execCommand('insertOrderedList');
+});
+</script>
+</body>
« no previous file with comments | « no previous file | Source/core/editing/commands/InsertListCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698