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