aboutsummaryrefslogtreecommitdiffstats
path: root/test/service
diff options
context:
space:
mode:
authorIgor Minar2011-07-17 01:05:43 -0700
committerIgor Minar2011-07-18 12:12:55 -0700
commitfe5240732d0a80b8717be77b31d51dc3c4d737fd (patch)
tree10ae66804417087e53df8df657de5f00ff888293 /test/service
parentb98c23274b4dd51205d5020a254ac53966c9ae9a (diff)
downloadangular.js-fe5240732d0a80b8717be77b31d51dc3c4d737fd.tar.bz2
feat(strict mode): adding strict mode flag to all js files
the flag must be in all src and test files so that we get the benefit of running in the strict mode even in jstd the following script was used to modify all files: for file in `find src test -name "*.js"`; do echo -e "'use strict';\n" > temp.txt cat $file >> temp.txt mv temp.txt $file done
Diffstat (limited to 'test/service')
-rw-r--r--test/service/cookieStoreSpec.js2
-rw-r--r--test/service/cookiesSpec.js2
-rw-r--r--test/service/deferSpec.js2
-rw-r--r--test/service/documentSpec.js2
-rw-r--r--test/service/exceptionHandlerSpec.js2
-rw-r--r--test/service/hoverSpec.js2
-rw-r--r--test/service/invalidWidgetsSpec.js2
-rw-r--r--test/service/locationSpec.js2
-rw-r--r--test/service/logSpec.js2
-rw-r--r--test/service/resourceSpec.js2
-rw-r--r--test/service/routeSpec.js2
-rw-r--r--test/service/updateViewSpec.js2
-rw-r--r--test/service/windowSpec.js2
-rw-r--r--test/service/xhr.bulkSpec.js2
-rw-r--r--test/service/xhr.cacheSpec.js2
-rw-r--r--test/service/xhr.errorSpec.js2
-rw-r--r--test/service/xhrSpec.js2
17 files changed, 34 insertions, 0 deletions
diff --git a/test/service/cookieStoreSpec.js b/test/service/cookieStoreSpec.js
index 0a493470..b37e9cb0 100644
--- a/test/service/cookieStoreSpec.js
+++ b/test/service/cookieStoreSpec.js
@@ -1,3 +1,5 @@
+'use strict';
+
describe('$cookieStore', function() {
var scope, $browser, $cookieStore;
diff --git a/test/service/cookiesSpec.js b/test/service/cookiesSpec.js
index 11551393..3248fe23 100644
--- a/test/service/cookiesSpec.js
+++ b/test/service/cookiesSpec.js
@@ -1,3 +1,5 @@
+'use strict';
+
describe('$cookies', function() {
var scope, $browser;
diff --git a/test/service/deferSpec.js b/test/service/deferSpec.js
index 21b8bf9c..7e59978c 100644
--- a/test/service/deferSpec.js
+++ b/test/service/deferSpec.js
@@ -1,3 +1,5 @@
+'use strict';
+
describe('$defer', function() {
var scope, $browser, $defer, $exceptionHandler;
diff --git a/test/service/documentSpec.js b/test/service/documentSpec.js
index bd92023d..79c752e4 100644
--- a/test/service/documentSpec.js
+++ b/test/service/documentSpec.js
@@ -1,3 +1,5 @@
+'use strict';
+
describe('$document', function() {
var scope;
diff --git a/test/service/exceptionHandlerSpec.js b/test/service/exceptionHandlerSpec.js
index 59349065..c6f13161 100644
--- a/test/service/exceptionHandlerSpec.js
+++ b/test/service/exceptionHandlerSpec.js
@@ -1,3 +1,5 @@
+'use strict';
+
describe('$exceptionHandler', function() {
var scope;
diff --git a/test/service/hoverSpec.js b/test/service/hoverSpec.js
index 8b137891..429d26d2 100644
--- a/test/service/hoverSpec.js
+++ b/test/service/hoverSpec.js
@@ -1 +1,3 @@
+'use strict';
+
diff --git a/test/service/invalidWidgetsSpec.js b/test/service/invalidWidgetsSpec.js
index 6b965ef8..027d8d7c 100644
--- a/test/service/invalidWidgetsSpec.js
+++ b/test/service/invalidWidgetsSpec.js
@@ -1,3 +1,5 @@
+'use strict';
+
describe('$invalidWidgets', function() {
var scope;
diff --git a/test/service/locationSpec.js b/test/service/locationSpec.js
index 050875b1..f5a8c6b2 100644
--- a/test/service/locationSpec.js
+++ b/test/service/locationSpec.js
@@ -1,3 +1,5 @@
+'use strict';
+
describe('$location', function() {
var scope, $location, $browser;
diff --git a/test/service/logSpec.js b/test/service/logSpec.js
index 5d8fa0db..80d085b8 100644
--- a/test/service/logSpec.js
+++ b/test/service/logSpec.js
@@ -1,3 +1,5 @@
+'use strict';
+
describe('$log', function() {
var scope;
diff --git a/test/service/resourceSpec.js b/test/service/resourceSpec.js
index 8b137891..429d26d2 100644
--- a/test/service/resourceSpec.js
+++ b/test/service/resourceSpec.js
@@ -1 +1,3 @@
+'use strict';
+
diff --git a/test/service/routeSpec.js b/test/service/routeSpec.js
index ccdf19ec..fc2c7f9d 100644
--- a/test/service/routeSpec.js
+++ b/test/service/routeSpec.js
@@ -1,3 +1,5 @@
+'use strict';
+
describe('$route', function() {
var scope;
diff --git a/test/service/updateViewSpec.js b/test/service/updateViewSpec.js
index beca355e..97366973 100644
--- a/test/service/updateViewSpec.js
+++ b/test/service/updateViewSpec.js
@@ -1,3 +1,5 @@
+'use strict';
+
describe('$updateView', function() {
var scope, browser, evalCount, $updateView;
diff --git a/test/service/windowSpec.js b/test/service/windowSpec.js
index e968f560..3ead3df3 100644
--- a/test/service/windowSpec.js
+++ b/test/service/windowSpec.js
@@ -1,3 +1,5 @@
+'use strict';
+
describe('$window', function() {
var scope;
diff --git a/test/service/xhr.bulkSpec.js b/test/service/xhr.bulkSpec.js
index 2990e666..bc8d03f8 100644
--- a/test/service/xhr.bulkSpec.js
+++ b/test/service/xhr.bulkSpec.js
@@ -1,3 +1,5 @@
+'use strict';
+
describe('$xhr.bulk', function() {
var scope, $browser, $browserXhr, $log, $xhrBulk, $xhrError, log;
diff --git a/test/service/xhr.cacheSpec.js b/test/service/xhr.cacheSpec.js
index 4d3e3e08..905a9dae 100644
--- a/test/service/xhr.cacheSpec.js
+++ b/test/service/xhr.cacheSpec.js
@@ -1,3 +1,5 @@
+'use strict';
+
describe('$xhr.cache', function() {
var scope, $browser, $browserXhr, cache, log;
diff --git a/test/service/xhr.errorSpec.js b/test/service/xhr.errorSpec.js
index bd9f7a92..fdca93ec 100644
--- a/test/service/xhr.errorSpec.js
+++ b/test/service/xhr.errorSpec.js
@@ -1,3 +1,5 @@
+'use strict';
+
describe('$xhr.error', function() {
var scope, $browser, $browserXhr, $xhr, $xhrError, log;
diff --git a/test/service/xhrSpec.js b/test/service/xhrSpec.js
index 1f31bb6f..ed7cfc93 100644
--- a/test/service/xhrSpec.js
+++ b/test/service/xhrSpec.js
@@ -1,3 +1,5 @@
+'use strict';
+
describe('$xhr', function() {
var scope, $browser, $browserXhr, $log, $xhr, log;