diff options
Diffstat (limited to 'test/widgetsSpec.js')
| -rw-r--r-- | test/widgetsSpec.js | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/test/widgetsSpec.js b/test/widgetsSpec.js index e8ff4b27..09d807b5 100644 --- a/test/widgetsSpec.js +++ b/test/widgetsSpec.js @@ -72,7 +72,6 @@ describe('widget', function() { $rootScope.childScope.name = 'misko'; $rootScope.url = 'myUrl'; $rootScope.$digest(); - $browser.defer.flush(); expect(element.text()).toEqual('misko'); })); @@ -86,7 +85,6 @@ describe('widget', function() { $rootScope.childScope.name = 'igor'; $rootScope.url = 'myUrl'; $rootScope.$digest(); - $browser.defer.flush(); expect(element.text()).toEqual('igor'); @@ -103,7 +101,6 @@ describe('widget', function() { element = $compile(element)($rootScope); $rootScope.url = 'myUrl'; $rootScope.$digest(); - $browser.defer.flush(); // TODO(misko): because we are using scope==this, the eval gets registered // during the flush phase and hence does not get called. @@ -125,7 +122,6 @@ describe('widget', function() { $rootScope.url = 'myUrl'; $rootScope.$digest(); - $browser.defer.flush(); expect(element.text()).toEqual('my partial'); expect($rootScope.loaded).toBe(true); @@ -141,7 +137,6 @@ describe('widget', function() { $rootScope.url = 'myUrl'; $rootScope.$digest(); - $browser.defer.flush(); expect($rootScope.$$childHead).toBeTruthy(); $rootScope.url = null; @@ -166,7 +161,6 @@ describe('widget', function() { $rootScope.url = 'myUrl'; $rootScope.$digest(); - $browser.defer.flush(); expect(element.text()).toEqual('my partial'); dealoc($rootScope); })); @@ -199,7 +193,6 @@ describe('widget', function() { }); $rootScope.$digest(); - $browser.defer.flush(); expect(element.text()).toBe('my partial'); })); @@ -746,7 +739,6 @@ describe('widget', function() { $rootScope.log = []; $location.path('/foo'); $rootScope.$apply(); - $browser.defer.flush(); expect($rootScope.log).toEqual(['parent', 'init', 'child']); })); @@ -801,7 +793,6 @@ describe('widget', function() { }); $rootScope.$digest(); - $browser.defer.flush(); expect(element.text()).toBe('my partial'); })); }); |
