Fix tests
This commit is contained in:
parent
942d262622
commit
a18b28f953
@ -630,7 +630,7 @@
|
|||||||
|
|
||||||
it("contains two tabs, 'Contacts' and 'ChatRooms'", $.proxy(function () {
|
it("contains two tabs, 'Contacts' and 'ChatRooms'", $.proxy(function () {
|
||||||
var cbview = this.chatboxesview.views.controlbox;
|
var cbview = this.chatboxesview.views.controlbox;
|
||||||
var $panels = cbview.$el.find('#controlbox-panes');
|
var $panels = cbview.$el.find('.controlbox-panes');
|
||||||
expect($panels.children().length).toBe(2);
|
expect($panels.children().length).toBe(2);
|
||||||
expect($panels.children().first().attr('id')).toBe('users');
|
expect($panels.children().first().attr('id')).toBe('users');
|
||||||
expect($panels.children().first().is(':visible')).toBe(true);
|
expect($panels.children().first().is(':visible')).toBe(true);
|
||||||
@ -647,7 +647,7 @@
|
|||||||
it("is opened by clicking the 'Chatrooms' tab", $.proxy(function () {
|
it("is opened by clicking the 'Chatrooms' tab", $.proxy(function () {
|
||||||
var cbview = this.chatboxesview.views.controlbox;
|
var cbview = this.chatboxesview.views.controlbox;
|
||||||
var $tabs = cbview.$el.find('#controlbox-tabs');
|
var $tabs = cbview.$el.find('#controlbox-tabs');
|
||||||
var $panels = cbview.$el.find('#controlbox-panes');
|
var $panels = cbview.$el.find('.controlbox-panes');
|
||||||
var $contacts = $panels.children().first();
|
var $contacts = $panels.children().first();
|
||||||
var $chatrooms = $panels.children().last();
|
var $chatrooms = $panels.children().last();
|
||||||
spyOn(cbview, 'switchTab').andCallThrough();
|
spyOn(cbview, 'switchTab').andCallThrough();
|
||||||
|
@ -33,7 +33,7 @@ require.config({
|
|||||||
//module value.
|
//module value.
|
||||||
exports: 'Backbone'
|
exports: 'Backbone'
|
||||||
},
|
},
|
||||||
'tinysort': { deps: ['jquery'] },
|
'jquery.tinysort': { deps: ['jquery'] },
|
||||||
'strophe': { deps: ['jquery'] },
|
'strophe': { deps: ['jquery'] },
|
||||||
'underscore': { exports: '_' },
|
'underscore': { exports: '_' },
|
||||||
'strophe.muc': { deps: ['strophe', 'jquery'] },
|
'strophe.muc': { deps: ['strophe', 'jquery'] },
|
||||||
|
Loading…
Reference in New Issue
Block a user