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

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

Issue 1459783003: Make layout tests in editing/deleting and editing/execCommand to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/editing/execCommand/4924441.html » ('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 <div id="root" contenteditable='true'>
5
6 <style>
7 .editing {
8 border: 2px solid red;
9 padding: 12px;
10 font-size: 24px;
11 }
12 </style>
13
14 <script>
15
16 function editingTest() {
17 for (var i = 0; i < 8; i++)
18 moveSelectionForwardByCharacterCommand();
19 for (var i = 0; i < 4; i++)
20 deleteCommand();
21 }
22
23 </script>
24
25 <title>Editing Test</title>
26 </head>
27 <body contenteditable='true'>
28 <div id="root" class="editing">
29 <span id="test">Foo<BR><BLOCKQUOTE>Bar</BLOCKQUOTE></span> 5 <span id="test">Foo<BR><BLOCKQUOTE>Bar</BLOCKQUOTE></span>
30 </div> 6 </div>
31 7 <div id="log"></div>
32 <script> 8 <script>
33 runEditingTest(); 9 test(function() {
10 var selection = window.getSelection();
11 selection.collapse(document.getElementById('test').firstChild, 0);
12 for (var i = 0; i < 8; i++)
13 selection.modify("move", "forward", "character");
14 for (var i = 0; i < 4; i++)
15 document.execCommand('delete');
16 assert_equals(document.getElementById('root').innerHTML, '\n<span id="test"> Foo</span>');
17 });
34 </script> 18 </script>
35
36 </body>
37 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/execCommand/4924441.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698