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

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

Issue 2183413002: Convert editing/selection/table-caret-1.html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/platform/linux/editing/selection/table-caret-1-expected.png » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!doctype html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <script src="../assert_selection.js"></script>
1 <script> 5 <script>
2 if (window.testRunner) 6 test(() => assert_selection(
3 testRunner.dumpEditingCallbacks(); 7 [
8 '<div contenteditable>',
9 'foo',
10 '<table><tr><td>this</td></tr><tr><td>is</td></tr><tr><td>a table</td> </tr></table>',
11 'baz',
12 '</div>'
13 ].join(''),
14 selection => selection.collapse(selection.document.querySelector('table'), 0 ),
15 [
16 '<div contenteditable>',
17 'foo',
18 '|<table><tbody><tr><td>this</td></tr><tr><td>is</td></tr><tr><td>a ta ble</td></tr></tbody></table>',
19 'baz',
20 '</div>'
21 ].join('')), 'Place the caret before a block table.');
4 </script> 22 </script>
5 <style>
6 table, td {
7 border: 1px solid #999;
8 }
9 </style>
10
11 <p>This tests the caret position for the caret before a block table.</p>
12
13 <div contenteditable="true">foo<table id="test"><tr><td>this</td></tr><tr><td>is </td></tr><tr><td>a table</td></tr></table>baz</div>
14
15 <script>
16 var s = window.getSelection();
17 var e = document.getElementById("test");
18
19 s.collapse(e, 0);
20 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/platform/linux/editing/selection/table-caret-1-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698