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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/deleting/delete-leading-ws-001.html

Issue 2264463002: Convert editing/deleting/delete-leading-ws-001.html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-08-19T15:28:48 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/deleting/delete-leading-ws-001-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 <html> 1 <!doctype html>
2 <head> 2 <script src="../../resources/testharness.js"></script>
3 3 <script src="../../resources/testharnessreport.js"></script>
4 <style> 4 <script src="../assert_selection.js"></script>
5 .editing {
6 border: 2px solid red;
7 padding: 12px;
8 font-size: 24px;
9 }
10 </style>
11 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script >
12
13 <script> 5 <script>
14 6 test(() => assert_selection(
15 function editingTest() { 7 '<div contenteditable>f ^baz|</div>',
16 for (i = 0; i < 2; i++) { 8 'delete',
17 moveSelectionForwardByCharacterCommand(); 9 '<div contenteditable>f\u{00A0}|</div>'),
18 } 10 'Delete then collapse whitespaces to nbsp');
19 for (i = 0; i < 4; i++) {
20 extendSelectionForwardByCharacterCommand();
21 }
22 deleteCommand();
23 }
24
25 </script> 11 </script>
26
27 <title>Editing Test</title>
28 </head>
29 <body>
30 <div contenteditable id="root" class="editing">
31 <span id="test">f baz</span>
32 </div>
33
34 <script>
35 runEditingTest();
36 </script>
37
38 </body>
39 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/platform/linux/editing/deleting/delete-leading-ws-001-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698