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

Unified Diff: third_party/WebKit/LayoutTests/editing/deleting/delete-line-003.html

Issue 2520173004: Convert delete-line-003.html to utilize w3c test harness (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/platform/linux/editing/deleting/delete-line-003-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/deleting/delete-line-003.html
diff --git a/third_party/WebKit/LayoutTests/editing/deleting/delete-line-003.html b/third_party/WebKit/LayoutTests/editing/deleting/delete-line-003.html
index 8bf0bf8796cee37bb8faee75e7204351f1abdcac..de46b96270ea80a38d1a5b522fe8d76511e477f5 100644
--- a/third_party/WebKit/LayoutTests/editing/deleting/delete-line-003.html
+++ b/third_party/WebKit/LayoutTests/editing/deleting/delete-line-003.html
@@ -1,31 +1,13 @@
-<html>
-<head>
-
-<style>
-.editing {
- font-size: 24px;
- width: 600px;
-}
-</style>
-<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
-
+<!doctype HTML>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="../assert_selection.js"></script>
<script>
-
-function editingTest() {
- moveSelectionForwardByLineCommand();
- extendSelectionForwardByLineCommand();
- deleteCommand();
-}
-
+test(() => assert_selection(
+ '<div contenteditable style="font-size: 24px; width: 600px;">There is a tide^<br>in the affairs of men|<br>Which taken at the flood</div>',
+ selection => {
yosin_UTC9 2016/11/24 02:19:28 nit: Just use 'delete'
+ selection.document.execCommand('delete');
+ },
+ '<div contenteditable style="font-size: 24px; width: 600px;">There is a tide|<br>Which taken at the flood</div>'),
+ 'Editing test');
</script>
-
-<title>Editing Test</title>
-</head>
-<body contenteditable id="root">
-<div id="test" class="editing">There is a tide<br>in the affairs of men<br>Which taken at the flood</div>
-<script>
-runEditingTest();
-</script>
-
-</body>
-</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/platform/linux/editing/deleting/delete-line-003-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698