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

Unified Diff: third_party/WebKit/LayoutTests/editing/inserting/insert-div-019.html

Issue 2181603002: Convert editing/insert-div-019.html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-07-25T15:40:07 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/inserting/insert-div-019-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/inserting/insert-div-019.html
diff --git a/third_party/WebKit/LayoutTests/editing/inserting/insert-div-019.html b/third_party/WebKit/LayoutTests/editing/inserting/insert-div-019.html
index 1a1f1bfe9110084eb39dd46c75a84fc46393e81a..99f8a5c82a6650ac9e45dab2792a256df65f4ea3 100644
--- a/third_party/WebKit/LayoutTests/editing/inserting/insert-div-019.html
+++ b/third_party/WebKit/LayoutTests/editing/inserting/insert-div-019.html
@@ -1,45 +1,24 @@
-<html>
-<head>
-
-<style>
-body {
- font-size: 24px;
-}
-.editing {
- border: 2px solid red;
- padding: 12px;
-}
-div {
- border: 2px solid blue;
- padding: 12px;
-}
-
-</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();
- insertParagraphCommand();
-}
-
+test(() => assert_selection(
+ [
+ '<div contenteditable>',
+ '<p>foo</p>',
+ '|<br>',
+ '<p>bar</p>',
+ '</div>',
+ ].join(''),
+ 'insertParagraph',
+ [
+ '<div contenteditable>',
+ '<p>foo</p>',
+ '<div><br></div>',
+ '|<br>',
+ '<p>bar</p>',
+ '</div>',
+ ].join('')),
+ 'insert DIV+BR before BR');
</script>
-
-<title>Editing Test</title>
-</head>
-<body contenteditable id="root">
-
-Test inserting paragraphs: should see an empty blue box above an empty line between "foo" and "bar"
-
-<div style="border: none; height: 12px"></div>
-
-<p id="test" class="editing">foo</p><br><p class="editing">bar</p>
-
-<script>
-runEditingTest();
-</script>
-
-</body>
-</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/platform/linux/editing/inserting/insert-div-019-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698