aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIgor Minar2011-04-08 09:51:03 -0700
committerIgor Minar2011-04-08 09:51:08 -0700
commit72ad726efa44ba8d5dc68d971390b6912da10e2e (patch)
tree76de8dda292c797b3032874a63a83a856235c0d5 /src
parent0d2d7025e60095afc3497c6cd4a4af9e0cd9b90e (diff)
downloadangular.js-72ad726efa44ba8d5dc68d971390b6912da10e2e.tar.bz2
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()
Diffstat (limited to 'src')
-rw-r--r--src/scenario/dsl.js6
1 files changed, 3 insertions, 3 deletions
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);
});
};