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/crash-indenting-list-item.html

Issue 2269203005: Convert editing/execCommand/crash-indenting-list-item to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 016-08-24T17:05:27 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/editing/execCommand/crash-indenting-list-item-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/crash-indenting-list-item.html
diff --git a/third_party/WebKit/LayoutTests/editing/execCommand/crash-indenting-list-item.html b/third_party/WebKit/LayoutTests/editing/execCommand/crash-indenting-list-item.html
index 11ccad44776c555c446737a13a9326a654407a9c..48cc2a9a44a4578c03480e9ead03288db108cc3a 100644
--- a/third_party/WebKit/LayoutTests/editing/execCommand/crash-indenting-list-item.html
+++ b/third_party/WebKit/LayoutTests/editing/execCommand/crash-indenting-list-item.html
@@ -1,8 +1,11 @@
-<div contentEditable><ul><li id='foo'></li></ul></div>
-<script src="../../resources/dump-as-markup.js"></script>
+<!doctype html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="../assert_selection.js"></script>
<script>
-window.getSelection().setBaseAndExtent(foo, 0, foo, 0);
-// This test passes if it does not crash.
-document.execCommand('indent', false, null);
-document.getElementById("foo").innerText = "PASSED";
+ test(() => assert_selection(
+ '<div contentEditable><ul><li>|</li></ul></div>',
+ 'indent',
+ '<div contenteditable><ul><ul><li></li></ul>|</ul></div>'),
+ 'This is crash test');
</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/execCommand/crash-indenting-list-item-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698