aboutsummaryrefslogtreecommitdiffstats
path: root/test/scenario
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/scenario
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/scenario')
-rw-r--r--test/scenario/ApplicationSpec.js2
-rw-r--r--test/scenario/DescribeSpec.js2
-rw-r--r--test/scenario/FutureSpec.js2
-rw-r--r--test/scenario/ObjectModelSpec.js2
-rw-r--r--test/scenario/RunnerSpec.js2
-rw-r--r--test/scenario/SpecRunnerSpec.js2
-rw-r--r--test/scenario/dslSpec.js2
-rw-r--r--test/scenario/e2e/widgets-scenario.js2
-rw-r--r--test/scenario/matchersSpec.js2
-rw-r--r--test/scenario/mocks.js2
-rw-r--r--test/scenario/output/HtmlSpec.js2
-rw-r--r--test/scenario/output/jsonSpec.js2
-rw-r--r--test/scenario/output/objectSpec.js2
-rw-r--r--test/scenario/output/xmlSpec.js2
14 files changed, 28 insertions, 0 deletions
diff --git a/test/scenario/ApplicationSpec.js b/test/scenario/ApplicationSpec.js
index 8c31726f..8caf1651 100644
--- a/test/scenario/ApplicationSpec.js
+++ b/test/scenario/ApplicationSpec.js
@@ -1,3 +1,5 @@
+'use strict';
+
describe('angular.scenario.Application', function() {
var $window;
var app, frames;
diff --git a/test/scenario/DescribeSpec.js b/test/scenario/DescribeSpec.js
index 0322b2d4..173b0807 100644
--- a/test/scenario/DescribeSpec.js
+++ b/test/scenario/DescribeSpec.js
@@ -1,3 +1,5 @@
+'use strict';
+
describe('angular.scenario.Describe', function() {
var log;
var root;
diff --git a/test/scenario/FutureSpec.js b/test/scenario/FutureSpec.js
index 827c4b35..2a75f275 100644
--- a/test/scenario/FutureSpec.js
+++ b/test/scenario/FutureSpec.js
@@ -1,3 +1,5 @@
+'use strict';
+
describe('angular.scenario.Future', function() {
var future;
diff --git a/test/scenario/ObjectModelSpec.js b/test/scenario/ObjectModelSpec.js
index cb84b33f..e0da628d 100644
--- a/test/scenario/ObjectModelSpec.js
+++ b/test/scenario/ObjectModelSpec.js
@@ -1,3 +1,5 @@
+'use strict';
+
describe('angular.scenario.ObjectModel', function() {
var model;
var runner;
diff --git a/test/scenario/RunnerSpec.js b/test/scenario/RunnerSpec.js
index 5ebe5690..62d84fca 100644
--- a/test/scenario/RunnerSpec.js
+++ b/test/scenario/RunnerSpec.js
@@ -1,3 +1,5 @@
+'use strict';
+
/**
* Mock spec runner.
*/
diff --git a/test/scenario/SpecRunnerSpec.js b/test/scenario/SpecRunnerSpec.js
index 7947a3ca..0e1ffac1 100644
--- a/test/scenario/SpecRunnerSpec.js
+++ b/test/scenario/SpecRunnerSpec.js
@@ -1,3 +1,5 @@
+'use strict';
+
/**
* Mock Application
*/
diff --git a/test/scenario/dslSpec.js b/test/scenario/dslSpec.js
index 1d4ee360..a07d411e 100644
--- a/test/scenario/dslSpec.js
+++ b/test/scenario/dslSpec.js
@@ -1,3 +1,5 @@
+'use strict';
+
describe("angular.scenario.dsl", function() {
var $window, $root;
var application, eventLog;
diff --git a/test/scenario/e2e/widgets-scenario.js b/test/scenario/e2e/widgets-scenario.js
index e0a98224..ca0f8130 100644
--- a/test/scenario/e2e/widgets-scenario.js
+++ b/test/scenario/e2e/widgets-scenario.js
@@ -1,3 +1,5 @@
+'use strict';
+
describe('widgets', function() {
it('should verify that basic widgets work', function(){
browser().navigateTo('widgets.html');
diff --git a/test/scenario/matchersSpec.js b/test/scenario/matchersSpec.js
index 16ba1ce6..7ab41cf2 100644
--- a/test/scenario/matchersSpec.js
+++ b/test/scenario/matchersSpec.js
@@ -1,3 +1,5 @@
+'use strict';
+
describe('angular.scenario.matchers', function () {
var matchers;
diff --git a/test/scenario/mocks.js b/test/scenario/mocks.js
index e023b6b0..5b7f7fcc 100644
--- a/test/scenario/mocks.js
+++ b/test/scenario/mocks.js
@@ -1,3 +1,5 @@
+'use strict';
+
angular.scenario.testing = angular.scenario.testing || {};
angular.scenario.testing.MockAngular = function() {
diff --git a/test/scenario/output/HtmlSpec.js b/test/scenario/output/HtmlSpec.js
index 1cfa268e..442e596d 100644
--- a/test/scenario/output/HtmlSpec.js
+++ b/test/scenario/output/HtmlSpec.js
@@ -1,3 +1,5 @@
+'use strict';
+
describe('angular.scenario.output.html', function() {
var runner, model, spec, step, listeners, ui, context;
diff --git a/test/scenario/output/jsonSpec.js b/test/scenario/output/jsonSpec.js
index 2c56b297..06caf91c 100644
--- a/test/scenario/output/jsonSpec.js
+++ b/test/scenario/output/jsonSpec.js
@@ -1,3 +1,5 @@
+'use strict';
+
describe('angular.scenario.output.json', function() {
var output, context;
var runner, model, $window;
diff --git a/test/scenario/output/objectSpec.js b/test/scenario/output/objectSpec.js
index 9fc2f7d4..d92c939d 100644
--- a/test/scenario/output/objectSpec.js
+++ b/test/scenario/output/objectSpec.js
@@ -1,3 +1,5 @@
+'use strict';
+
describe('angular.scenario.output.object', function() {
var output;
var runner, model, $window;
diff --git a/test/scenario/output/xmlSpec.js b/test/scenario/output/xmlSpec.js
index a0e92639..94c3cb5a 100644
--- a/test/scenario/output/xmlSpec.js
+++ b/test/scenario/output/xmlSpec.js
@@ -1,3 +1,5 @@
+'use strict';
+
describe('angular.scenario.output.json', function() {
var output, context;
var runner, model, $window;