| Index: LayoutTests/editing/selection/select-text-overflow-ellipsis.html
|
| diff --git a/LayoutTests/editing/selection/select-text-overflow-ellipsis.html b/LayoutTests/editing/selection/select-text-overflow-ellipsis.html
|
| index 6ce3155d224cf1f24e854feb89f9c095430eca78..8e363e21bd4907e6d74a73330a5ad8f5eb2ccfda 100644
|
| --- a/LayoutTests/editing/selection/select-text-overflow-ellipsis.html
|
| +++ b/LayoutTests/editing/selection/select-text-overflow-ellipsis.html
|
| @@ -12,8 +12,11 @@
|
| <body>
|
| <h3>Test for <a href='https://bugs.webkit.org/show_bug.cgi?id=29968'>WebKit bug 29968</a>: Selecting text with text-overflow ellipsis should not show cut off text</h3>
|
| <div id="selection_with_ellipsis" class="cutoff">Lorem ipsum dolor</div>
|
| - <script type="text/javascript">
|
| - getSelection().setBaseAndExtent(selection_with_ellipsis.firstChild, 0, selection_with_ellipsis.firstChild, 11);
|
| + <script src="../../resources/run-after-layout-and-paint.js"></script>
|
| + <script>
|
| + runAfterLayoutAndPaint(function() {
|
| + getSelection().setBaseAndExtent(selection_with_ellipsis.firstChild, 0, selection_with_ellipsis.firstChild, 11);
|
| + }, true);
|
| </script>
|
| </body>
|
| </html>
|
|
|