Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Unified Diff: LayoutTests/editing/selection/select-text-overflow-ellipsis.html

Issue 1209743004: Invalidate ellipsis box when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/layout/LayoutText.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | Source/core/layout/LayoutText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698