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