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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/deleting/delete-to-select-table.html

Issue 2169323002: Convert editing/deleting/delete-to-select-table.html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-07-22T14:39:40 Created 4 years, 5 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/android/editing/deleting/delete-to-select-table-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 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script > 1 <!doctype html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <script src="../assert_selection.js"></script>
2 <script> 5 <script>
3 function editingTest() { 6 test(() => assert_selection(
4 for (i = 0; i < 30; i++) { 7 [
5 moveSelectionForwardByCharacterCommand(); 8 '<div contenteditable><table>',
6 } 9 '<tr><td>Foo</td><td>baz</td></tr>',
7 for (i = 0; i < 1; i++) { 10 '<tr><td>bar</td><td>buffalo</td></tr>',
8 deleteCommand(); 11 '</table>|</div>',
9 } 12 ].join(''),
10 } 13 'delete',
14 [
15 '<div contenteditable>^<table><tbody>',
16 '<tr><td>Foo</td><td>baz</td></tr>',
17 '<tr><td>bar</td><td>buffalo</td></tr>',
18 '</tbody></table>|</div>',
19 ].join('')),
20 'Delete-on-caret selectes TABLE instead of delete something');
11 </script> 21 </script>
12 <div contenteditable="true" id="test">
13 <table style="border:3px solid #aaa;">
14 <tr>
15 <td>
16 Foo
17 </td>
18 <td>
19 baz
20 </td>
21 </tr>
22 <tr>
23 <td>
24 bar
25 </td>
26 <td>
27 buffalo
28 </td>
29 </tr>
30 </table>
31 </div>
32 <script>
33 runEditingTest();
34 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/platform/android/editing/deleting/delete-to-select-table-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698