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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/execCommand/nsresponder-indent.html

Issue 2454573002: Convert editing/execCommand/nsresponder-indent.html to utilize w3c test harness (Closed)
Patch Set: 2016-10-26T15:20:19 Created 4 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/platform/linux/editing/execCommand/nsresponder-indent-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 <!doctype html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <script src="../assert_selection.js"></script>
1 <script> 5 <script>
2 if (window.testRunner) 6 test(() => assert_selection(
3 testRunner.dumpEditingCallbacks(); 7 '<div contenteditable>|foo</div>',
8 'indent',
9 [
10 '<div contenteditable>',
11 '<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" >',
12 '|foo',
13 '</blockquote>',
14 '</div>'
15 ].join('')),
16 'Indent at caret');
4 </script> 17 </script>
5 <p>This tests the NSResponder method indent:. You should see an indented 'foo' below.</p>
6 <div id="div" contenteditable="true">foo</div>
7
8 <script>
9 var div = document.getElementById("div");
10 var sel = window.getSelection();
11
12 sel.collapse(div, 0);
13
14 document.execCommand("Indent");
15 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/platform/linux/editing/execCommand/nsresponder-indent-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698