From 72ad726efa44ba8d5dc68d971390b6912da10e2e Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Fri, 8 Apr 2011 09:51:03 -0700 Subject: fix e2e runner's browser.location methods when we stopped exposing $location service on the root scope the scenario runner was not modified to access the $location service via $service The following apis were affected: - browser().location().hashSearch() - browser().location().hashPath() - browser().location().search() --- src/scenario/dsl.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/scenario/dsl.js b/src/scenario/dsl.js index 4f967772..3f5fa3ba 100644 --- a/src/scenario/dsl.js +++ b/src/scenario/dsl.js @@ -86,19 +86,19 @@ angular.scenario.dsl('browser', function() { api.search = function() { return this.addFutureAction('browser url search', function($window, $document, done) { - done(null, $window.angular.scope().$location.search); + done(null, $window.angular.scope().$service('$location').search); }); }; api.hashSearch = function() { return this.addFutureAction('browser url hash search', function($window, $document, done) { - done(null, $window.angular.scope().$location.hashSearch); + done(null, $window.angular.scope().$service('$location').hashSearch); }); }; api.hashPath = function() { return this.addFutureAction('browser url hash path', function($window, $document, done) { - done(null, $window.angular.scope().$location.hashPath); + done(null, $window.angular.scope().$service('$location').hashPath); }); }; -- cgit v1.2.3