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

Unified Diff: LayoutTests/fast/events/scroll-event-raf-timing.html

Issue 644093003: NOP refactor to make various layout tests use setTimeout 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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: LayoutTests/fast/events/scroll-event-raf-timing.html
diff --git a/LayoutTests/fast/events/scroll-event-raf-timing.html b/LayoutTests/fast/events/scroll-event-raf-timing.html
index 0ddda8b880d36b5810189eaf5432fdc57a8ccecf..5d6d03e055dc1dc1e4b34a362958f43b4a23ca46 100644
--- a/LayoutTests/fast/events/scroll-event-raf-timing.html
+++ b/LayoutTests/fast/events/scroll-event-raf-timing.html
@@ -28,11 +28,12 @@ onload = function() {
++scrollsSinceLastFrame;
};
+ // FIXME: we need a better way of waiting for layout/repainting to happen
var timerId = setInterval(function() {
scrollable.scrollTop += 1;
if (!--remainingTicks)
clearInterval(timerId);
- }, 0);
+ }, 1);
function raf() {
if (scrollsSinceLastFrame > 1) {
« no previous file with comments | « LayoutTests/fast/css/font-face-css-change-while-loading.html ('k') | LayoutTests/http/tests/inspector/inspector-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698