From bcee7f268b8d81e16097e3f6a0508eb4d315e76d Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Fri, 24 Jan 2014 17:17:05 -0600 Subject: [PATCH] remove tests no longer needed --- .../test/service/ionicViewService.unit.js | 32 ------------------- 1 file changed, 32 deletions(-) diff --git a/js/ext/angular/test/service/ionicViewService.unit.js b/js/ext/angular/test/service/ionicViewService.unit.js index 3eaa446371..dfe3d4d1e3 100644 --- a/js/ext/angular/test/service/ionicViewService.unit.js +++ b/js/ext/angular/test/service/ionicViewService.unit.js @@ -772,36 +772,4 @@ describe('Ionic View Service', function() { expect($document[0].title).toEqual('New Title'); })); - it('should transition w/out animation', inject(function($compile) { - var opts = {}; - opts.parentElement = $compile("
leaving
")(rootScope); - rootScope.$digest(); - opts.leavingElement = opts.parentElement.find('leaving'); - opts.enteringElement = $compile("entering")(rootScope); - - expect(opts.parentElement.html()).toContain("leaving"); - viewService.transition(opts); - expect(opts.parentElement.html()).toContain("entering"); - })); - - it('should add the animation classname', inject(function($compile) { - var element = $compile("
")(rootScope); - viewService.setAnimationClass(element, 'animation-class', null); - expect(element.hasClass('animation-class')).toEqual(true); - })); - - it('should add the reverse classname', inject(function($compile) { - var element = $compile("
")(rootScope); - viewService.setAnimationClass(element, 'animation-class', 'back'); - expect(element.hasClass('reverse')).toEqual(true); - })); - - it('should remove the reverse classname', inject(function($compile) { - var element = $compile("
")(rootScope); - viewService.setAnimationClass(element, 'animation-class', 'forward'); - expect(element.hasClass('animation-class')).toEqual(true); - expect(element.hasClass('whatever')).toEqual(true); - expect(element.hasClass('reverse')).toEqual(false); - })); - });