it("is incremented from zero when chatbox was closed after viewing previously received messages and the window is not focused now",mock.initConverse(function(_converse){
it("is incremented from zero when chatbox was closed after viewing previously received messages and the window is not focused now",
it("is cleared when chatbox is maximzied after receiving messages in minimized mode",mock.initConverseWithAsync(function(done,_converse){
it("is cleared when chatbox is maximzied after receiving messages in minimized mode",
mock.initConverseWithPromises(
null,['rosterGroupsFetched'],{},
function(done,_converse){
test_utils.createContacts(_converse,'current');
test_utils.openContactsPanel(_converse);
test_utils.waitUntil(function(){
...
...
@@ -2075,12 +2349,15 @@
chatboxview.maximize();
expect(selectMsgsIndicator().length).toBe(0);
done();
});
}));
it("is cleared when unread messages are viewed which were received in scrolled-up chatbox",mock.initConverseWithAsync(function(done,_converse){
it("is cleared when unread messages are viewed which were received in scrolled-up chatbox",
mock.initConverseWithPromises(
null,['rosterGroupsFetched'],{},
function(done,_converse){
test_utils.createContacts(_converse,'current');
test_utils.openContactsPanel(_converse);
test_utils.waitUntil(function(){
...
...
@@ -2105,12 +2382,15 @@
chatboxview.viewUnreadMessages();
_converse.rosterview.render();
expect(selectMsgsIndicator().length).toBe(0);
done();
});
}));
it("is not cleared after user clicks on roster view when chatbox is already opened and scrolled up",mock.initConverseWithAsync(function(done,_converse){
it("is not cleared after user clicks on roster view when chatbox is already opened and scrolled up",