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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/deleting/delete-3928305-fix.html

Issue 2170753003: Convert editing/deleting/delete-3928305-fix.html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-07-22T13:13:45 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/linux/editing/deleting/delete-3928305-fix-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 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script > 4 <script src="../assert_selection.js"></script>
5
6 <style>
7 .editing {
8 border: 2px solid red;
9 padding: 12px;
10 font-size: 24px;
11 }
12 </style>
13
14 <script> 5 <script>
15 6 test(() => {
16 function editingTest() { 7 assert_selection(
17 for (i = 0; i < 4; i++) 8 '<div contenteditable><div><p>foo</p>^bar|<p>baz</p></div></div>',
18 » moveSelectionForwardByCharacterCommand(); 9 'Delete',
19 for (i = 0; i < 3; i++) 10 '<div contenteditable><p>foo</p>|<br><p>baz</p></div>');
20 » extendSelectionForwardByCharacterCommand(); 11 }, 'Delete characters between blocks in block inserts BR.');
21 deleteCommand();
22 }
23
24 </script> 12 </script>
25
26 <title>Editing Test</title>
27 </head>
28 <body contenteditable="true">
29
30 Should see a blank line between "foo" and "baz"
31 <div style="height: 24px"></div>
32
33 <div id="root" class="editing">
34 <div id="test">foo</div>bar<div>baz</div>
35
36 <!--
37
38 Fix for this bug:
39
40 <rdar://problem/3928305> selecting an entire line and typing over causes new ins erted text at top of document
41
42 -->
43
44 <script>
45 runEditingTest();
46 </script>
47
48 </body>
49 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/platform/linux/editing/deleting/delete-3928305-fix-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698