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

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

Issue 2340713002: Convert editing/inserting/insert-div-009.html to use w3c test harness (Closed)
Patch Set: 2016-09-14T16:58:14 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-009-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-009.html
diff --git a/third_party/WebKit/LayoutTests/editing/inserting/insert-div-009.html b/third_party/WebKit/LayoutTests/editing/inserting/insert-div-009.html
index 0f5feca71099305b1b53cbd5b0c094c84194b929..8023758894d76218a05f5073c7b9981a84329a82 100644
--- a/third_party/WebKit/LayoutTests/editing/inserting/insert-div-009.html
+++ b/third_party/WebKit/LayoutTests/editing/inserting/insert-div-009.html
@@ -1,31 +1,20 @@
-<html>
-<head>
-
-<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() {
- selectAllCommand();
- moveSelectionForwardByCharacterCommand();
- insertParagraphCommand();
- typeCharacterCommand();
-}
-
+test(() => assert_selection(
+ [
+ '<div contenteditable>',
+ '<div>abc|</div>',
+ '</div>',
+ ].join(''),
+ 'insertParagraph',
+ [
+ '<div contenteditable>',
+ '<div>abc</div>',
+ '<div>|<br></div>',
+ '</div>',
+ ].join('')),
+ 'insert BR at end of block');
</script>
-
-<title>Editing Test</title>
-</head>
-<body contenteditable id="root">
-<div id="test">test</div>
-
-<!-- This test is very similar to other insert-div tests, except that it does not place a height (using CSS) on
- blocks that are added. Bugs involving "block placeholders" (br elements added to give a block height)
- will be exposed in this test but not others. -->
-
-<script>
-runEditingTest();
-</script>
-
-</body>
-</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/platform/linux/editing/inserting/insert-div-009-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698