aboutsummaryrefslogtreecommitdiffstats
path: root/src/scenario
diff options
context:
space:
mode:
authorVojta Jina2011-11-11 17:15:22 -0800
committerMisko Hevery2011-11-14 20:31:19 -0800
commitacbd7cdf320f0570fcc1952c8680d4c78bc8fa2c (patch)
tree2483609ada03b9e6ff477596f0402dc24fdd7518 /src/scenario
parent035c7510763a9742294d51ba55aea0b6dd08ea58 (diff)
downloadangular.js-acbd7cdf320f0570fcc1952c8680d4c78bc8fa2c.tar.bz2
style(docs): make jslint happy - fix some warnings
Diffstat (limited to 'src/scenario')
-rw-r--r--src/scenario/Runner.js2
-rw-r--r--src/scenario/dsl.js16
2 files changed, 9 insertions, 9 deletions
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());
});
};