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