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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/execCommand/insertHorizontalRule.html

Issue 2172033003: Convert editing/execCommand/insertHorizontalRule.html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-07-22T17:10:05 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/editing/execCommand/insert_horizontal_rule.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <script>
2 if (window.testRunner)
3 testRunner.dumpEditingCallbacks();
4 </script>
5 <p>These are tests for execCommand(InsertHorizontalRule).</p>
6
7 <p>This test inserts an hr between 'foo' and 'bar'.</p>
8 <div id="test1" contenteditable="true">foobar</div>
9
10 <p>This test inserts an hr with id="hr" between 'foo' and 'bar', fetches the hr using its id, then removes it.</p>
11 <div id="test2" contenteditable="true">foobar</div>
12
13 <script type="text/javascript" src="../editing.js"></script>
14 <script>
15 var s = window.getSelection();
16 var e;
17
18 e = document.getElementById("test1");
19 s.collapse(e, 0);
20 moveSelectionForwardByCharacterCommand();
21 moveSelectionForwardByCharacterCommand();
22 moveSelectionForwardByCharacterCommand();
23 document.execCommand("InsertHorizontalRule", false, "");
24
25 e = document.getElementById("test2");
26 s.collapse(e, 0);
27 moveSelectionForwardByCharacterCommand();
28 moveSelectionForwardByCharacterCommand();
29 moveSelectionForwardByCharacterCommand();
30 var id = "hr";
31 document.execCommand("InsertHorizontalRule", false, id);
32 var hr = document.getElementById(id);
33 hr.parentNode.removeChild(hr);
34 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/execCommand/insert_horizontal_rule.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698