Progress on #37

This commit is contained in:
Max Lynch
2013-10-15 14:33:34 -05:00
parent bb2ec72053
commit 6ac2cd3797
32 changed files with 250 additions and 143 deletions

View File

@ -10,8 +10,8 @@ describe('NavController', function() {
},
attach: function() {
}
}
}
};
};
beforeEach(function() {
navBarEl = document.createElement('div');

View File

@ -8,7 +8,7 @@ describe('TabBarController', function() {
el: tabEl.get(0)
})
});
})
});
it('Should add Controllers', function() {
ctrl.addController({
@ -82,4 +82,4 @@ describe('TabBarController', function() {
expect(ctrl.getSelectedController()).toBe(ctrl.getController(0));
});
})
});

View File

@ -80,7 +80,7 @@ describe('TabBar view', function() {
tabBar.destroy();
var event = new CustomEvent('tap', {
event = new CustomEvent('tap', {
target: item.el
});
item.el.dispatchEvent(event);
@ -129,7 +129,7 @@ describe('TabBarItem view', function() {
item.destroy();
var event = new CustomEvent('tap', {
event = new CustomEvent('tap', {
target: item.el
});
item.el.dispatchEvent(event);