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
pull/21833/head
Kegsay 2016-07-14 10:38:24 +01:00 committed by GitHub
parent ec70a08b93
commit 20210e7104
1 changed files with 2 additions and 0 deletions

View File

@ -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(() => {