More tests and tab item building

This commit is contained in:
Max Lynch
2013-09-13 10:09:56 -05:00
parent cad4d9b0d5
commit 830f35dd1c
2 changed files with 36 additions and 3 deletions

View File

@ -4,7 +4,7 @@ describe('TabBarController', function() {
beforeEach(function() {
var tabEl = $('<div class="tabs"></div>');
ctrl = new TabBarController({
tabBar: new TabBar({ el: tabEl })
tabBar: new TabBar({ el: tabEl.get(0) })
});
})
@ -56,7 +56,7 @@ describe('TabBarController', function() {
it('Should allow cancelling Controller switch', function() {
var tabEl = $('<div class="tabs"></div>');
ctrl = new TabBarController({
tabBar: new TabBar({ el: tabEl }),
tabBar: new TabBar({ el: tabEl.get(0) }),
controllerWillChange: function(Controller) { return false; }
});