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> |