diff options
Diffstat (limited to 'test/ngScenario/ApplicationSpec.js')
| -rw-r--r-- | test/ngScenario/ApplicationSpec.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/ngScenario/ApplicationSpec.js b/test/ngScenario/ApplicationSpec.js index 7384ecaa..0236b8d7 100644 --- a/test/ngScenario/ApplicationSpec.js +++ b/test/ngScenario/ApplicationSpec.js @@ -5,10 +5,7 @@ describe('angular.scenario.Application', function() { var app, frames; function callLoadHandlers(app) { - var handlers = app.getFrame_().data('events').load; - expect(handlers).toBeDefined(); - expect(handlers.length).toEqual(1); - handlers[0].handler(); + var handler = app.getFrame_().triggerHandler('load') } beforeEach(function() { |
