| 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>
|
|
|