Trying to fix timing bug in tests (for Travis)
This commit is contained in:
parent
4938621048
commit
ad695c253d
@ -743,7 +743,7 @@
|
|||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
|
||||||
it("will cause the chat area to be scrolled down only if it was at the bottom already",
|
it("will cause the chat area to be scrolled down only if it was at the bottom originally",
|
||||||
mock.initConverseWithPromises(
|
mock.initConverseWithPromises(
|
||||||
null, ['rosterGroupsFetched'], {},
|
null, ['rosterGroupsFetched'], {},
|
||||||
function (done, _converse) {
|
function (done, _converse) {
|
||||||
@ -769,10 +769,9 @@
|
|||||||
}).c('body').t('Message: '+i).up()
|
}).c('body').t('Message: '+i).up()
|
||||||
.c('active', {'xmlns': 'http://jabber.org/protocol/chatstates'}).tree());
|
.c('active', {'xmlns': 'http://jabber.org/protocol/chatstates'}).tree());
|
||||||
}
|
}
|
||||||
|
|
||||||
test_utils.waitUntil(function () {
|
test_utils.waitUntil(function () {
|
||||||
return chatboxview.$content.scrollTop();
|
return chatboxview.$content.scrollTop();
|
||||||
}, 500)
|
}, 1000)
|
||||||
.then(function () {
|
.then(function () {
|
||||||
return test_utils.waitUntil(function () {
|
return test_utils.waitUntil(function () {
|
||||||
return !chatboxview.model.get('auto_scrolled');
|
return !chatboxview.model.get('auto_scrolled');
|
||||||
|
Loading…
Reference in New Issue
Block a user