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

Unified Diff: third_party/WebKit/LayoutTests/editing/execCommand/indent-empty-root.html

Issue 2264283004: Convert editing/execCommand/indent-empty-root.html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-08-24T18:07:45 Created 4 years, 4 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/indent-empty-root-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/indent-empty-root.html
diff --git a/third_party/WebKit/LayoutTests/editing/execCommand/indent-empty-root.html b/third_party/WebKit/LayoutTests/editing/execCommand/indent-empty-root.html
index fb762ff4c1b7258bfcb15498a696a1d67c8dbbf7..591007a55c3d3c9e4f1ba3891221ce30d5c8337d 100644
--- a/third_party/WebKit/LayoutTests/editing/execCommand/indent-empty-root.html
+++ b/third_party/WebKit/LayoutTests/editing/execCommand/indent-empty-root.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();
+ test(() => assert_selection(
+ '<div contenteditable>|</div>',
+ 'indent',
+ [
+ '<div contenteditable>',
+ '<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">',
+ '|<br>',
+ '</blockquote>',
+ '</div>',
+ ].join('')),
+ 'Indent in an empty editable element');
</script>
-<body>
-<p>This tests Indent in an empty editable element.</p>
-<div id="div" contentEditable="true"></div>
-
-<script>
-var div = document.getElementById("div");
-var sel = window.getSelection();
-sel.collapse(div, 0);
-document.execCommand("Indent");
-</script>
-</body>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/platform/linux/editing/execCommand/indent-empty-root-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698