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/inserting/insert-div-018.html

Issue 2123423003: Convert editing/inserting/insert-div-018.html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-07-07T16:02:59 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/android/editing/inserting/insert-div-018-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-018.html
diff --git a/third_party/WebKit/LayoutTests/editing/inserting/insert-div-018.html b/third_party/WebKit/LayoutTests/editing/inserting/insert-div-018.html
index e0db6ad23565aa9034d2ce28b720fbd75b23dd1b..580ff06eb8b51789d31c5900cd1a4abdd217f8b5 100644
--- a/third_party/WebKit/LayoutTests/editing/inserting/insert-div-018.html
+++ b/third_party/WebKit/LayoutTests/editing/inserting/insert-div-018.html
@@ -1,44 +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>
+<body>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="../assert_selection.js"></script>
<script>
-
-function editingTest() {
- moveSelectionBackwardByCharacterCommand();
- insertParagraphCommand();
-}
-
+test(() => {
+ assert_selection(
+ [
+ '<div contenteditable>',
+ '<div style="height:12px"></div>',
+ 'bar|<div>baz</div>',
+ '</div>',
+ ].join(''),
+ 'insertParagraph',
+ [
+ '<div contenteditable>',
+ '<div style="height:12px"></div>',
+ 'bar<div>|<br><div>baz</div></div>',
+ '</div>',
+ ].join(''),
+ 'Insert BR befor <div>baz</div>');
+});
</script>
-
-<title>Editing Test</title>
-</head>
-<body contenteditable id="root">
-
-Test inserting paragraphs: should see an empty blue box below "bar"
-
-<div style="border: none; height: 12px"></div>
-
-bar<div class="editing" id="test">baz</div>
-
-<script>
-runEditingTest();
-</script>
-
-</body>
-</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/platform/android/editing/inserting/insert-div-018-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698