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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/relayout-shifts-inner-editor.html

Issue 2293293003: Make CaretBase a DisplayItemClient. (Closed)
Patch Set: Fix unit test and disable failing test on SPv2. Created 4 years, 3 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
Index: third_party/WebKit/LayoutTests/fast/forms/relayout-shifts-inner-editor.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/relayout-shifts-inner-editor.html b/third_party/WebKit/LayoutTests/fast/forms/relayout-shifts-inner-editor.html
index 25c3302f9e05323af42eecca01214497484ad0a2..f6da2ba927a9eafd879588fd5a232579cd445489 100644
--- a/third_party/WebKit/LayoutTests/fast/forms/relayout-shifts-inner-editor.html
+++ b/third_party/WebKit/LayoutTests/fast/forms/relayout-shifts-inner-editor.html
@@ -1,4 +1,5 @@
<!DOCTYPE html>
+<script src="../../resources/run-after-layout-and-paint.js"></script>
<script>
var i = 0;
var refreshIntervalId;
@@ -8,13 +9,12 @@ function repaintTest()
}
function moveInputElement()
{
- var input = document.getElementById('input');
i++;
input.style.left = i*10 + 'px';
if (i >= 3) {
- clearInterval(refreshIntervalId);
- if (window.testRunner)
- testRunner.notifyDone();
+ runAfterLayoutAndPaint(function() {
+ clearInterval(refreshIntervalId);
+ }, true);
}
}
if (window.testRunner)
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | third_party/WebKit/LayoutTests/paint/invalidation/textarea-caret.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698