| Index: third_party/WebKit/LayoutTests/fast/text/selection-painting-hidpi.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/text/selection-painting-hidpi.html b/third_party/WebKit/LayoutTests/fast/text/selection-painting-hidpi.html
|
| index 7074c9291bd1282998d3cbad6074d4028f793c40..36a4a7afe425642c59b34252e3350e62bf43ef75 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/text/selection-painting-hidpi.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/text/selection-painting-hidpi.html
|
| @@ -1,4 +1,4 @@
|
| -<!DOCTYPE html>
|
| +<!DOCTYPE html>
|
| <html>
|
| <head>
|
| <title>Selection painting test</title>
|
| @@ -17,7 +17,9 @@
|
| <span>between</span> <span>words</span>.
|
| </div>
|
| <script>
|
| - window.getSelection().selectAllChildren(document.body.firstElementChild);
|
| + const div = document.querySelector('div');
|
| + // Select from before |<span>There</span>| to after |<span>words</span>.|.
|
| + window.getSelection().setBaseAndExtent(div.firstChild, div.firstChild.length, div.lastChild, 1);
|
| </script>
|
| </body>
|
| </html>
|
|
|