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

Unified Diff: third_party/WebKit/LayoutTests/editing/deleting/merge-paragraph-into-pre.html

Issue 2289093002: Convert editing/deleting/merge-paragraph-into-pre.html to use w3c test harness (Closed)
Patch Set: 2016-08-30T18:28:04 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/deleting/merge-paragraph-into-pre-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/deleting/merge-paragraph-into-pre.html
diff --git a/third_party/WebKit/LayoutTests/editing/deleting/merge-paragraph-into-pre.html b/third_party/WebKit/LayoutTests/editing/deleting/merge-paragraph-into-pre.html
index 9eedfefac9a809173c52dc2efb140a9de4b3acbb..f1279f359646b8c9866d0546f48dde4fb3707f0e 100644
--- a/third_party/WebKit/LayoutTests/editing/deleting/merge-paragraph-into-pre.html
+++ b/third_party/WebKit/LayoutTests/editing/deleting/merge-paragraph-into-pre.html
@@ -1,26 +1,13 @@
-<!DOCTYPE html>
-<html>
-<body>
-<p id="description">This tests deleting line break after pre.
-WebKit should not cancel styles added by pre by those of document's default style.</p>
-<div id="test" contenteditable>
-<pre>hello</pre>
-world
-</div>
-</div>
-<script src="../editing.js"></script>
-<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>
-
-function editingTest() {
- moveSelectionForwardByLineCommand();
- deleteCommand();
-
- Markup.description(document.getElementById('description').textContent);
- Markup.dump('test');
-}
-
-runEditingTest();
+ test(() => assert_selection(
+ '<div contenteditable><pre>hello</pre>\n|world</div>',
+ 'delete',
+ // We should not cancel styles added BY PRE by those of document's
+ // default style.
+ '<div contenteditable><pre>hello|world</pre></div>'),
+ 'Delete line break after PRE');
</script>
-</body>
-</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/deleting/merge-paragraph-into-pre-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698