| Index: third_party/WebKit/LayoutTests/editing/selection/image-before-linebreak.html
|
| diff --git a/third_party/WebKit/LayoutTests/editing/selection/image-before-linebreak.html b/third_party/WebKit/LayoutTests/editing/selection/image-before-linebreak.html
|
| index 370ab74f9f663fe3ee06b822db1449ccfbd2d0e6..2f07f1dbb257f36849935df20e649e12d5fcac75 100644
|
| --- a/third_party/WebKit/LayoutTests/editing/selection/image-before-linebreak.html
|
| +++ b/third_party/WebKit/LayoutTests/editing/selection/image-before-linebreak.html
|
| @@ -1,17 +1,15 @@
|
| +<!doctype html>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +<script src="../assert_selection.js"></script>
|
| <script>
|
| -if (window.testRunner)
|
| - testRunner.dumpEditingCallbacks();
|
| -</script>
|
| -<p>Only the line break after the image should be selected.</p>
|
| -<hr>
|
| -<div contenteditable="true" id="div"><img src="../resources/abe.png"><br>foo</div>
|
| -
|
| -<script>
|
| -if (window.testRunner)
|
| - window.testRunner.dumpSelectionRect();
|
| -
|
| -var e = document.getElementById("div");
|
| -var s = window.getSelection();
|
| -// Select the line break
|
| -s.setBaseAndExtent(e, 1, e, 2);
|
| +test(() => assert_selection(
|
| + '<div contenteditable id="div"><img src="../resources/abe.png"><br>foo</div>',
|
| + selection => {
|
| + // Select the line break
|
| + var e = selection.document.getElementById("div");
|
| + selection.setBaseAndExtent(e, 1, e, 2);
|
| + },
|
| + '<div contenteditable id="div"><img src="../resources/abe.png">^<br>|foo</div>'),
|
| + 'Only the line break after the image should be selected.');
|
| </script>
|
|
|