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

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

Issue 2338223002: Convert editing/inserting/insert-div-010.html to use w3c test harness (Closed)
Patch Set: 2016-09-14T17:05:21 Created 4 years, 3 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-010-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-010.html
diff --git a/third_party/WebKit/LayoutTests/editing/inserting/insert-div-010.html b/third_party/WebKit/LayoutTests/editing/inserting/insert-div-010.html
index d7018c604bacbb971af1b89e113061ffcb016334..2c3ffa0805d819b88f2d45c4bd2418715d2e2069 100644
--- a/third_party/WebKit/LayoutTests/editing/inserting/insert-div-010.html
+++ b/third_party/WebKit/LayoutTests/editing/inserting/insert-div-010.html
@@ -1,36 +1,20 @@
-<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() {
- typeCharacterCommand();
- moveSelectionBackwardByCharacterCommand();
- insertParagraphCommand();
-}
-
+test(() => assert_selection(
+ [
+ '<div contenteditable>',
+ '<div>|x</div>',
+ '</div>',
+ ].join(''),
+ 'insertParagraph',
+ [
+ '<div contenteditable>',
+ '<div><br></div>',
+ '<div>|x</div>',
+ '</div>',
+ ].join('')),
+ 'insert BR before a character');
</script>
-
-<title>Editing Test</title>
-</head>
-<body contenteditable id="root" class="editing">
-<div id="test"><br class="webkit-block-placeholder"></div>
-
-<!-- Test fix for <rdar://problem/3918351> REGRESSION (Mail, 173-175+): Return
- before first char of line leaves insertion point in wrong place -->
-
-<script>
-runEditingTest();
-</script>
-
-</body>
-</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/platform/linux/editing/inserting/insert-div-010-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698