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

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

Issue 2123423003: Convert editing/inserting/insert-div-018.html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-07-07T16:02:59 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/android/editing/inserting/insert-div-018-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 <body>
3 3 <script src="../../resources/testharness.js"></script>
4 <style> 4 <script src="../../resources/testharnessreport.js"></script>
5 body { 5 <script src="../assert_selection.js"></script>
6 font-size: 24px;
7 }
8 .editing {
9 border: 2px solid red;
10 padding: 12px;
11 }
12 div {
13 border: 2px solid blue;
14 padding: 12px;
15 }
16
17 </style>
18 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script >
19
20 <script> 6 <script>
21 7 test(() => {
22 function editingTest() { 8 assert_selection(
23 moveSelectionBackwardByCharacterCommand(); 9 [
24 insertParagraphCommand(); 10 '<div contenteditable>',
25 } 11 '<div style="height:12px"></div>',
26 12 'bar|<div>baz</div>',
13 '</div>',
14 ].join(''),
15 'insertParagraph',
16 [
17 '<div contenteditable>',
18 '<div style="height:12px"></div>',
19 'bar<div>|<br><div>baz</div></div>',
20 '</div>',
21 ].join(''),
22 'Insert BR befor <div>baz</div>');
23 });
27 </script> 24 </script>
28
29 <title>Editing Test</title>
30 </head>
31 <body contenteditable id="root">
32
33 Test inserting paragraphs: should see an empty blue box below "bar"
34
35 <div style="border: none; height: 12px"></div>
36
37 bar<div class="editing" id="test">baz</div>
38
39 <script>
40 runEditingTest();
41 </script>
42
43 </body>
44 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/platform/android/editing/inserting/insert-div-018-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698