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

Unified Diff: third_party/WebKit/LayoutTests/editing/execCommand/4924441.html

Issue 1459783003: Make layout tests in editing/deleting and editing/execCommand to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/4924441.html
diff --git a/third_party/WebKit/LayoutTests/editing/execCommand/4924441.html b/third_party/WebKit/LayoutTests/editing/execCommand/4924441.html
index fbe09521186b7602356f3827eb7bd246dbcb5132..c2b2b12c65ea0749e50a7c5c9bdebdb4e1b726fb 100644
--- a/third_party/WebKit/LayoutTests/editing/execCommand/4924441.html
+++ b/third_party/WebKit/LayoutTests/editing/execCommand/4924441.html
@@ -1,11 +1,17 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
<p>This tests for a bug where changing the list type of an indented list would create unwanted nesting. You should see a single ordered list item in an indented list.</p>
<div id="div" contenteditable="true"><br></div>
-
+<div id="log"></div>
<script>
-var div = document.getElementById("div");
-div.focus();
-document.execCommand("InsertText", false, "foo");
-document.execCommand("InsertUnorderedList");
-document.execCommand("Indent");
-document.execCommand("InsertOrderedList");
+test(function() {
+ var div = document.getElementById('div');
+ div.focus();
+ document.execCommand('InsertText', false, 'foo');
+ document.execCommand('InsertUnorderedList');
+ document.execCommand('Indent');
+ document.execCommand('InsertOrderedList');
+ assert_equals(div.innerHTML, '<ul><ol><li>foo<br></li></ol></ul>');
+});
</script>

Powered by Google App Engine
This is Rietveld 408576698