update how view's set titles, closes #337

This commit is contained in:
Adam Bradley
2014-01-12 22:39:10 -06:00
parent 8982a8ad40
commit 3124ef3981
8 changed files with 38 additions and 32 deletions

View File

@@ -779,12 +779,9 @@ describe('Ionic View Service', function() {
opts.leavingElement = opts.parentElement.find('leaving');
opts.enteringElement = $compile("<entering>entering</entering>")(rootScope);
spyOn(rootScope, '$broadcast');
expect(opts.parentElement.html()).toContain("leaving");
viewService.transition(opts);
expect(opts.parentElement.html()).toContain("entering");
expect(rootScope.$broadcast).toHaveBeenCalledWith('viewState.viewEnter', { title: null, navDirection: null });
}));
it('should add the animation classname', inject(function($compile) {