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