From 20210e71040906623648dc8e314708eacfe032c4 Mon Sep 17 00:00:00 2001 From: Kegsay Date: Thu, 14 Jul 2016 10:38:24 +0100 Subject: [PATCH] Log scrollTop and scrollHeight to try to debug flakey test Sometimes it fails because awaitScroll() on :277 isn't resolving because onScroll isn't firing. We need to know if this is because we aren't changing scrollTop --- test/components/structures/TimelinePanel-test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/components/structures/TimelinePanel-test.js b/test/components/structures/TimelinePanel-test.js index 045ccd70b7..d1c13ff8b8 100644 --- a/test/components/structures/TimelinePanel-test.js +++ b/test/components/structures/TimelinePanel-test.js @@ -271,6 +271,8 @@ describe('TimelinePanel', function() { // we should now be able to scroll down, and paginate in the other // direction. + console.log("scrollingDiv.scrollTop is " + scrollingDiv.scrollTop); + console.log("Going to set it to " + scrollingDiv.scrollHeight); scrollingDiv.scrollTop = scrollingDiv.scrollHeight; return awaitScroll(); }).then(() => {