From acbd7cdf320f0570fcc1952c8680d4c78bc8fa2c Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Fri, 11 Nov 2011 17:15:22 -0800 Subject: style(docs): make jslint happy - fix some warnings --- src/scenario/Runner.js | 2 +- src/scenario/dsl.js | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src/scenario') diff --git a/src/scenario/Runner.js b/src/scenario/Runner.js index d71236bd..5839fae0 100644 --- a/src/scenario/Runner.js +++ b/src/scenario/Runner.js @@ -163,7 +163,7 @@ angular.scenario.Runner.prototype.createSpecRunner_ = function(scope) { */ angular.scenario.Runner.prototype.run = function(application) { var self = this; - var $root = angular.injector('NG')('$rootScope'); + var $root = angular.injector('ng')('$rootScope'); angular.extend($root, this); angular.forEach(angular.scenario.Runner.prototype, function(fn, name) { $root[name] = angular.bind(self, fn); diff --git a/src/scenario/dsl.js b/src/scenario/dsl.js index c082cdd0..8963f889 100644 --- a/src/scenario/dsl.js +++ b/src/scenario/dsl.js @@ -38,10 +38,10 @@ angular.scenario.dsl('sleep', function() { * browser().window.path() window.location.pathname * browser().window.search() window.location.search * browser().window.hash() window.location.hash without # prefix - * browser().location().url() see angular.module.NG.$location#url - * browser().location().path() see angular.module.NG.$location#path - * browser().location().search() see angular.module.NG.$location#search - * browser().location().hash() see angular.module.NG.$location#hash + * browser().location().url() see angular.module.ng.$location#url + * browser().location().path() see angular.module.ng.$location#path + * browser().location().search() see angular.module.ng.$location#search + * browser().location().hash() see angular.module.ng.$location#hash */ angular.scenario.dsl('browser', function() { var chain = {}; @@ -103,25 +103,25 @@ angular.scenario.dsl('browser', function() { api.url = function() { return this.addFutureAction('$location.url()', function($window, $document, done) { - done(null, $window.angular.injector('NG')('$location').url()); + done(null, $window.angular.injector('ng')('$location').url()); }); }; api.path = function() { return this.addFutureAction('$location.path()', function($window, $document, done) { - done(null, $window.angular.injector('NG')('$location').path()); + done(null, $window.angular.injector('ng')('$location').path()); }); }; api.search = function() { return this.addFutureAction('$location.search()', function($window, $document, done) { - done(null, $window.angular.injector('NG')('$location').search()); + done(null, $window.angular.injector('ng')('$location').search()); }); }; api.hash = function() { return this.addFutureAction('$location.hash()', function($window, $document, done) { - done(null, $window.angular.injector('NG')('$location').hash()); + done(null, $window.angular.injector('ng')('$location').hash()); }); }; -- cgit v1.2.3