| Index: third_party/WebKit/LayoutTests/editing/inserting/insert-paragraph-04.html
|
| diff --git a/third_party/WebKit/LayoutTests/editing/inserting/insert-paragraph-04.html b/third_party/WebKit/LayoutTests/editing/inserting/insert-paragraph-04.html
|
| index 3d066423a15e6dba3e065b9074bbcb67c3ce7938..41c00c3e8ad0de0e365e985a30a1566089cd601b 100644
|
| --- a/third_party/WebKit/LayoutTests/editing/inserting/insert-paragraph-04.html
|
| +++ b/third_party/WebKit/LayoutTests/editing/inserting/insert-paragraph-04.html
|
| @@ -1,18 +1,21 @@
|
| -<script>
|
| -if (window.testRunner)
|
| - testRunner.dumpEditingCallbacks();
|
| -</script>
|
| +<!DOCTYPE html>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| <p>This tests inserting a paragraph separator after a horizontal rule. You should see 'foo', empty paragraph, horizontal rule, 'bar', and the caret should be just after the horizontal rule. <b>This demonstrates 8345. The caret after a horizontal rule is drawn in the same location as the caret before a horizontal rule.</p>
|
| <div contenteditable="true" id="div">foo<hr>bar</div>
|
| -
|
| +<div id="log"></div>
|
| <script>
|
| -if (window.internals)
|
| - internals.settings.setEditingBehavior('mac');
|
| -var sel = window.getSelection();
|
| -var div = document.getElementById("div");
|
| -sel.collapse(div, 0);
|
| -sel.modify("move", "forward", "word");
|
| -sel.modify("move", "forward", "character");
|
| -sel.modify("move", "forward", "character");
|
| -document.execCommand("InsertParagraph");
|
| +test(function() {
|
| + if (window.internals)
|
| + internals.settings.setEditingBehavior('mac');
|
| + var selection = window.getSelection();
|
| + var div = document.getElementById('div');
|
| + selection.collapse(div, 0);
|
| + selection.modify('move', 'forward', 'word');
|
| + selection.modify('move', 'forward', 'character');
|
| + selection.modify('move', 'forward', 'character');
|
| + document.execCommand('insertParagraph');
|
| +
|
| + assert_equals(div.innerHTML, 'foo<hr><br>bar');
|
| +});
|
| </script>
|
|
|