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/switch-list-type-with-inner-list.html

Issue 2337413002: Convert editing/execCommand/switch-list-type-with-inner-list.html to use w3c test harness (Closed)
Patch Set: 2016-09-14T14:39:46 Created 4 years, 3 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/editing/execCommand/switch-list-type-with-inner-list-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/editing/execCommand/switch-list-type-with-inner-list.html
diff --git a/third_party/WebKit/LayoutTests/editing/execCommand/switch-list-type-with-inner-list.html b/third_party/WebKit/LayoutTests/editing/execCommand/switch-list-type-with-inner-list.html
index f7d4fd8e867d41623572c8fd71c78972267a1f4f..5b7fbd02e552f5cbb50d7f72b45ca3b1f05e1443 100644
--- a/third_party/WebKit/LayoutTests/editing/execCommand/switch-list-type-with-inner-list.html
+++ b/third_party/WebKit/LayoutTests/editing/execCommand/switch-list-type-with-inner-list.html
@@ -1,21 +1,31 @@
-<script src="../../resources/dump-as-markup.js"></script>
-<body>
-<div id="test" contenteditable>
-<ul>
- <li>hello</li>
- <ol>
- <li>world</li>
- </ol>
- <li>webkit</li>
-</ul>
-</div>
+<!doctype html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="../assert_selection.js"></script>
<script>
-Markup.description('This tests switching an unordered list with a nested list to an ordered list.');
-
-var test = document.getElementById('test');
-window.getSelection().selectAllChildren(test);
-document.execCommand('InsertOrderedList', false, null);
-
-Markup.dump('test');
+test(() => assert_selection(
+ [
+ '<div contenteditable>',
+ '<ul>',
+ '<li>^hello</li>',
+ '<ol>',
+ '<li>world</li>',
+ '</ol>',
+ '<li>webkit|</li>',
+ '</ul>',
+ '</div>',
+ ].join(''),
+ 'insertOrderedList',
+ [
+ '<div contenteditable>',
+ '<ol>',
+ '<li>^hello</li>',
+ '<ol>',
+ '<li>world</li>',
+ '</ol>',
+ '<li>webkit|</li>',
+ '</ol>',
+ '</div>',
+ ].join('')),
+ 'switching an unordered list with a nested list to an ordered list.');
</script>
-</body>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/execCommand/switch-list-type-with-inner-list-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698