diff --git a/spec/chatbox.js b/spec/chatbox.js index 1aa07f6e5..6ebef60f5 100644 --- a/spec/chatbox.js +++ b/spec/chatbox.js @@ -57,16 +57,16 @@ }, converse)); it("can be trimmed to conserve space", $.proxy(function () { - var i, $el, click, jid, view, chatboxview; + var i, $el, click, jid, key, view, chatboxview; // openControlBox was called earlier, so the controlbox is // visible, but no other chat boxes have been created. var trimmed_chatboxes = converse.chatboxviews.trimmed_chatboxes_view; expect(this.chatboxes.length).toEqual(1); spyOn(this.chatboxviews, 'trimChats'); spyOn(trimmed_chatboxes, 'onChanged').andCallThrough(); - expect($("#conversejs .chatbox").length).toBe(1); // Controlbox is open + // Test that they can be trimmed var online_contacts = this.rosterview.$el.find('dt#xmpp-contacts').siblings('dd.current-xmpp-contact').find('a.open-chat'); for (i=0; i