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

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: update 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..3a90bee7d55fd9a785ccac70c06820e2c6951f0e
--- /dev/null
+++ b/LayoutTests/editing/execCommand/insert-list-infinite-loop2.html
@@ -0,0 +1,17 @@
+<script src="../../resources/testharness.js"></script>
yosin_UTC9 2015/08/19 07:10:32 We prefer having <!DOCTYPE html> to use strict mod
yoichio 2015/08/20 06:31:10 Done.
+<script src="../../resources/testharnessreport.js"></script>
+<body contenteditable="true">
yosin_UTC9 2015/08/19 07:10:32 Can we move contenteditable="true" to "table"? Or,
yoichio 2015/08/20 06:31:10 Done.
+<div id="log"></div>
+<table><tbody><tr><td>
+ <table ><tbody><tr><td >
+ <ol id="ol"><li >wwwzip<br><br></li><li><br></li><li>Run<br>wine</li></ol>
+ </td></tr></tbody></table>
+ Fixed Width<div style="-webkit-user-select: none;"></div><div style="display: inline-block; border:solid ; "></div>
yosin_UTC9 2015/08/19 07:10:32 nit: we don't need to have spaces around ";".
yoichio 2015/08/20 06:31:10 Done.
+</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