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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/inserting/insert-div-009.html

Issue 2340713002: Convert editing/inserting/insert-div-009.html to use w3c test harness (Closed)
Patch Set: 2016-09-14T16:58:14 Created 4 years, 3 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/inserting/insert-div-009-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 <script> 5 <script>
7 6 test(() => assert_selection(
8 function editingTest() { 7 [
9 selectAllCommand(); 8 '<div contenteditable>',
10 moveSelectionForwardByCharacterCommand(); 9 '<div>abc|</div>',
11 insertParagraphCommand(); 10 '</div>',
12 typeCharacterCommand(); 11 ].join(''),
13 } 12 'insertParagraph',
14 13 [
14 '<div contenteditable>',
15 '<div>abc</div>',
16 '<div>|<br></div>',
17 '</div>',
18 ].join('')),
19 'insert BR at end of block');
15 </script> 20 </script>
16
17 <title>Editing Test</title>
18 </head>
19 <body contenteditable id="root">
20 <div id="test">test</div>
21
22 <!-- This test is very similar to other insert-div tests, except that it does no t place a height (using CSS) on
23 blocks that are added. Bugs involving "block placeholders" (br elements add ed to give a block height)
24 will be exposed in this test but not others. -->
25
26 <script>
27 runEditingTest();
28 </script>
29
30 </body>
31 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/platform/linux/editing/inserting/insert-div-009-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698