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

Unified 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, 2 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/editing/execCommand/nsresponder-indent.html
diff --git a/third_party/WebKit/LayoutTests/editing/execCommand/nsresponder-indent.html b/third_party/WebKit/LayoutTests/editing/execCommand/nsresponder-indent.html
index b4cdd3988119eee47738c5d6e8a509f714a4cdc0..c5a3b5535eb4b0d12202bcecdf4da2516b66656c 100644
--- a/third_party/WebKit/LayoutTests/editing/execCommand/nsresponder-indent.html
+++ b/third_party/WebKit/LayoutTests/editing/execCommand/nsresponder-indent.html
@@ -1,15 +1,17 @@
+<!doctype html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="../assert_selection.js"></script>
<script>
-if (window.testRunner)
- testRunner.dumpEditingCallbacks();
-</script>
-<p>This tests the NSResponder method indent:. You should see an indented 'foo' below.</p>
-<div id="div" contenteditable="true">foo</div>
-
-<script>
-var div = document.getElementById("div");
-var sel = window.getSelection();
-
-sel.collapse(div, 0);
-
-document.execCommand("Indent");
+test(() => assert_selection(
+ '<div contenteditable>|foo</div>',
+ 'indent',
+ [
+ '<div contenteditable>',
+ '<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">',
+ '|foo',
+ '</blockquote>',
+ '</div>'
+ ].join('')),
+ 'Indent at caret');
</script>
« 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