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-contiguous-ws-001.html

Issue 2169263003: Convert editing/deleting/delete-contiguous-ws-001.html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-07-22T13:58:57 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-contiguous-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(() => {
15 function editingTest() { 7 assert_selection(
16 for (i = 0; i < 4; i++) { 8 '<div contenteditable><span>foo ^bar| \nbaz</span></div>',
17 moveSelectionForwardByCharacterCommand(); 9 'delete',
18 } 10 '<div contenteditable><span>foo |\u{00A0}baz</span></div>',
19 for (i = 0; i < 3; i++) { 11 'foo');
20 extendSelectionForwardByCharacterCommand(); 12 }, 'Delete collapses whitespaces into U+00A0');
21 }
22 deleteCommand();
23 }
24
25 </script> 13 </script>
26
27 <title>Editing Test</title>
28 </head>
29 <body>
30 <div contenteditable id="root" class="editing">
31 <span id="test">foo bar
32
33 baz</span>
34 </div>
35
36 <script>
37 runEditingTest();
38 </script>
39
40 </body>
41 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/platform/linux/editing/deleting/delete-contiguous-ws-001-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698