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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/selection/table-caret-1.html

Issue 2697313005: Selection API: collapse() should recreate an internal Range. (Closed)
Patch Set: Add NeedsRebaseline for platform-dependent tests 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 test(() => assert_selection( 6 test(() => assert_selection(
7 [ 7 [
8 '<div contenteditable>', 8 '<div contenteditable>',
9 'foo', 9 'foo',
10 '<table><tr><td>this</td></tr><tr><td>is</td></tr><tr><td>a table</td> </tr></table>', 10 '<table><tr><td>this</td></tr><tr><td>is</td></tr><tr><td>a table</td> </tr></table>',
11 'baz', 11 'baz',
12 '</div>' 12 '</div>'
13 ].join(''), 13 ].join(''),
14 selection => selection.collapse(selection.document.querySelector('table'), 0 ), 14 selection => selection.collapse(selection.document.querySelector('table'), 0 ),
15 [ 15 [
16 '<div contenteditable>', 16 '<div contenteditable>',
17 'foo', 17 'foo',
18 '|<table><tbody><tr><td>this</td></tr><tr><td>is</td></tr><tr><td>a ta ble</td></tr></tbody></table>', 18 '<table>|<tbody><tr><td>this</td></tr><tr><td>is</td></tr><tr><td>a ta ble</td></tr></tbody></table>',
19 'baz', 19 'baz',
20 '</div>' 20 '</div>'
21 ].join('')), 'Place the caret before a block table.'); 21 ].join('')), 'Place the caret before a block table.');
22 </script> 22 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698