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

Unified Diff: third_party/WebKit/LayoutTests/editing/execCommand/indent-list-item.html

Issue 2171223002: Convert editing/execCommand/indent-list-item.html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-07-22T16:39:19 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 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-list-item-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-list-item.html
diff --git a/third_party/WebKit/LayoutTests/editing/execCommand/indent-list-item.html b/third_party/WebKit/LayoutTests/editing/execCommand/indent-list-item.html
index d113265f5d223c2d362ee2017309ed7e5fcf9754..4fc4fe27015abc0f9b89d872c3b8bc8f11bc05d9 100644
--- a/third_party/WebKit/LayoutTests/editing/execCommand/indent-list-item.html
+++ b/third_party/WebKit/LayoutTests/editing/execCommand/indent-list-item.html
@@ -1,19 +1,11 @@
+<!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>
-<div id="description">This test uses the execCommand to Outdent the text below.</div>
-<br>
-<div contenteditable="true">
-<ul>
-<li>Foo</li>
-<li id="item1">Bar</li>
-<li>Baz</li>
-</ul>
-</div>
-<script>
-var s = window.getSelection();
-var p1 = document.getElementById("item1");
-s.collapse(p1, 0);
-document.execCommand("Indent", false, "");
+test(() => assert_selection(
+ '<div contenteditable><ul><li>Foo</li><li>|Bar</li><li>Baz</li></ul></div>',
+ 'indent',
+ '<div contenteditable><ul><li>Foo</li><ul><li>|Bar</li></ul><li>Baz</li></ul></div>'),
+ 'Indent a list item in middle of list');
</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/platform/linux/editing/execCommand/indent-list-item-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698