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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/execCommand/crash-inserting-list.html

Issue 2680943004: Make FrameSelection to hold non-canonicalized positions (Closed)
Patch Set: 2014-02-14T23:34:22 Update TestExpectation to include extend-{0,2,4}0.html and selectAllChildren.html Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <script src="../../resources/testharness.js"></script> 2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script> 3 <script src="../../resources/testharnessreport.js"></script>
4 <script src="../assert_selection.js"></script> 4 <script src="../assert_selection.js"></script>
5 <script> 5 <script>
6 // It is a minimized testcase for a Clusterfuzz test. See crbug.com/345373 6 // It is a minimized testcase for a Clusterfuzz test. See crbug.com/345373
7 test(() => assert_selection( 7 test(() => assert_selection(
8 [ 8 [
9 '<style>', 9 '<style>',
10 '* { float:left; }', 10 '* { float:left; }',
(...skipping 27 matching lines...) Expand all
38 selection.document.execCommand('SelectAll'); 38 selection.document.execCommand('SelectAll');
39 const range = selection.getRangeAt(0); 39 const range = selection.getRangeAt(0);
40 const insertedElement = selection.document.getElementById('r0'); 40 const insertedElement = selection.document.getElementById('r0');
41 range.insertNode(insertedElement); 41 range.insertNode(insertedElement);
42 }, 42 },
43 [ 43 [
44 '<style>', 44 '<style>',
45 '* { float:left; }', 45 '* { float:left; }',
46 '.class0 { content: url(); }', 46 '.class0 { content: url(); }',
47 '</style>', 47 '</style>',
48 '<ul class="class0">', 48 '<ul>',
49 '<li id="r1">', 49 '<li id="r1"></li>',
50 '<li id="r0"></li>',
51 '</li>',
52 '</ul>', 50 '</ul>',
51 '<ol><li><br></li></ol>',
53 '^<hr>|', 52 '^<hr>|',
54 ].join(''))); 53 ].join('')));
55 </script> 54 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698