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

Unified Diff: third_party/WebKit/LayoutTests/editing/deleting/delete-contiguous-ws-001.html

Issue 2169263003: Convert editing/deleting/delete-contiguous-ws-001.html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-07-22T13:58:57 Created 4 years, 5 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/platform/linux/editing/deleting/delete-contiguous-ws-001-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-contiguous-ws-001.html
diff --git a/third_party/WebKit/LayoutTests/editing/deleting/delete-contiguous-ws-001.html b/third_party/WebKit/LayoutTests/editing/deleting/delete-contiguous-ws-001.html
index 904a7cf22b35f0072cc0c8bba001bbd3ad86dbae..9347cc5a683f2af70c22112e4bbc25f7732532f7 100644
--- a/third_party/WebKit/LayoutTests/editing/deleting/delete-contiguous-ws-001.html
+++ b/third_party/WebKit/LayoutTests/editing/deleting/delete-contiguous-ws-001.html
@@ -1,41 +1,13 @@
-<html>
-<head>
-
-<style>
-.editing {
- border: 2px solid red;
- padding: 12px;
- font-size: 24px;
-}
-</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() {
- for (i = 0; i < 4; i++) {
- moveSelectionForwardByCharacterCommand();
- }
- for (i = 0; i < 3; i++) {
- extendSelectionForwardByCharacterCommand();
- }
- deleteCommand();
-}
-
+test(() => {
+ assert_selection(
+ '<div contenteditable><span>foo ^bar| \nbaz</span></div>',
+ 'delete',
+ '<div contenteditable><span>foo |\u{00A0}baz</span></div>',
+ 'foo');
+}, 'Delete collapses whitespaces into U+00A0');
</script>
-
-<title>Editing Test</title>
-</head>
-<body>
-<div contenteditable id="root" class="editing">
-<span id="test">foo bar
-
-baz</span>
-</div>
-
-<script>
-runEditingTest();
-</script>
-
-</body>
-</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/platform/linux/editing/deleting/delete-contiguous-ws-001-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698