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

Unified Diff: third_party/WebKit/LayoutTests/editing/execCommand/outdent/outdent_nested_lists.html

Issue 2010323002: Convert execCommand/outdent-nested-lists-*.html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-05-31T10:35:27 Created 4 years, 7 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
Index: third_party/WebKit/LayoutTests/editing/execCommand/outdent/outdent_nested_lists.html
diff --git a/third_party/WebKit/LayoutTests/editing/execCommand/outdent/outdent_nested_lists.html b/third_party/WebKit/LayoutTests/editing/execCommand/outdent/outdent_nested_lists.html
new file mode 100644
index 0000000000000000000000000000000000000000..6409b3a6a33cb007acc9fdeb716d56de248991c2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/editing/execCommand/outdent/outdent_nested_lists.html
@@ -0,0 +1,87 @@
+<!doctype html>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<script src="../../assert_selection.js"></script>
+<div id="log"></div>
+<script>
+test(() => assert_selection(
+ [
+ '<ol contenteditable>',
+ '<li>one</li>',
+ '<ol>',
+ '<li>two</li>',
+ '<li>^three|</li>',
+ '</ol>',
+ '<li>four</li>',
+ '</ol>',
+ ].join(''),
+ 'Outdent',
+ [
+ '<ol contenteditable>',
+ '<li>one</li>',
+ '<ol><li>two</li></ol>',
+ '<li>^three|</li>',
+ '<li>four</li>',
+ '</ol>',
+ ].join('')), 'Nested list at two');
+
+test(() => assert_selection(
+ [
+ '<ol contenteditable>',
+ '<ol><li>^one|</li></ol>',
+ '<li>two</li>',
+ '<li>three</li>',
+ '<li>four</li>',
+ '</ol>',
+ ].join(''),
+ 'Outdent',
+ [
+ '<ol contenteditable>',
+ '<li>^one|</li>',
+ '<li>two</li>',
+ '<li>three</li>',
+ '<li>four</li>',
+ '</ol>',
+ ].join('')), 'Nested list at one');
+
+test(() => assert_selection(
+ [
+ '<ol contenteditable>',
+ '<ol>',
+ '<li>one</li>',
+ '<li>^two|</li>',
+ '<li>three</li>',
+ '</ol>',
+ '<li>four</li>',
+ '</ol>',
+ ].join(''),
+ 'Outdent',
+ [
+ '<ol contenteditable>',
+ '<ol><li>one</li></ol>',
+ '<li>^two|</li>',
+ '<ol>',
+ '<li>three</li>',
+ '</ol>',
+ '<li>four</li>',
+ '</ol>',
+ ].join('')), 'Nested list at one to three');
+
+test(() => assert_selection(
+ [
+ '<ol contenteditable>',
+ '<ol><li>one</li><li>^two</li></ol>',
+ '<ul><li>three</li></ul>',
+ '<ol><li>four|</li></ol>',
+ '</ol>',
+ ].join(''),
+ 'Outdent',
+ [
+ '<ol contenteditable>',
+ '<ol><li>one</li></ol>',
+ '<li>^two</li>',
+ '<li>three</li>',
+ '<li>four|</li>',
+ '</ol>',
+ ].join('')), 'Nested list at one to two, three(ul), and four');
+</script>

Powered by Google App Engine
This is Rietveld 408576698