diff options
| author | Igor Minar | 2011-07-17 01:05:43 -0700 |
|---|---|---|
| committer | Igor Minar | 2011-07-18 12:12:55 -0700 |
| commit | fe5240732d0a80b8717be77b31d51dc3c4d737fd (patch) | |
| tree | 10ae66804417087e53df8df657de5f00ff888293 /src/scenario | |
| parent | b98c23274b4dd51205d5020a254ac53966c9ae9a (diff) | |
| download | angular.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 'src/scenario')
| -rw-r--r-- | src/scenario/Application.js | 2 | ||||
| -rw-r--r-- | src/scenario/Describe.js | 2 | ||||
| -rw-r--r-- | src/scenario/Future.js | 2 | ||||
| -rw-r--r-- | src/scenario/ObjectModel.js | 2 | ||||
| -rw-r--r-- | src/scenario/Runner.js | 2 | ||||
| -rw-r--r-- | src/scenario/Scenario.js | 2 | ||||
| -rw-r--r-- | src/scenario/SpecRunner.js | 2 | ||||
| -rw-r--r-- | src/scenario/angular-bootstrap.js | 2 | ||||
| -rw-r--r-- | src/scenario/dsl.js | 2 | ||||
| -rw-r--r-- | src/scenario/matchers.js | 2 | ||||
| -rw-r--r-- | src/scenario/output/Html.js | 2 | ||||
| -rw-r--r-- | src/scenario/output/Json.js | 2 | ||||
| -rw-r--r-- | src/scenario/output/Object.js | 2 | ||||
| -rw-r--r-- | src/scenario/output/Xml.js | 2 |
14 files changed, 28 insertions, 0 deletions
diff --git a/src/scenario/Application.js b/src/scenario/Application.js index 1c87c5a0..24f5a8c4 100644 --- a/src/scenario/Application.js +++ b/src/scenario/Application.js @@ -1,3 +1,5 @@ +'use strict'; + /** * Represents the application currently being tested and abstracts usage * of iframes or separate windows. diff --git a/src/scenario/Describe.js b/src/scenario/Describe.js index c6484f2f..45a5aa63 100644 --- a/src/scenario/Describe.js +++ b/src/scenario/Describe.js @@ -1,3 +1,5 @@ +'use strict'; + /** * The representation of define blocks. Don't used directly, instead use * define() in your tests. diff --git a/src/scenario/Future.js b/src/scenario/Future.js index f545c721..598731fa 100644 --- a/src/scenario/Future.js +++ b/src/scenario/Future.js @@ -1,3 +1,5 @@ +'use strict'; + /** * A future action in a spec. * diff --git a/src/scenario/ObjectModel.js b/src/scenario/ObjectModel.js index bff14461..76e0201a 100644 --- a/src/scenario/ObjectModel.js +++ b/src/scenario/ObjectModel.js @@ -1,3 +1,5 @@ +'use strict'; + /** * Maintains an object tree from the runner events. * diff --git a/src/scenario/Runner.js b/src/scenario/Runner.js index 51a81d6a..eb9d0320 100644 --- a/src/scenario/Runner.js +++ b/src/scenario/Runner.js @@ -1,3 +1,5 @@ +'use strict'; + /** * Runner for scenarios * diff --git a/src/scenario/Scenario.js b/src/scenario/Scenario.js index 6879d787..8f34e6c1 100644 --- a/src/scenario/Scenario.js +++ b/src/scenario/Scenario.js @@ -1,3 +1,5 @@ +'use strict'; + /** * Setup file for the Scenario. diff --git a/src/scenario/SpecRunner.js b/src/scenario/SpecRunner.js index 868c692d..0d6274a4 100644 --- a/src/scenario/SpecRunner.js +++ b/src/scenario/SpecRunner.js @@ -1,3 +1,5 @@ +'use strict'; + /** * This class is the "this" of the it/beforeEach/afterEach method. * Responsibilities: diff --git a/src/scenario/angular-bootstrap.js b/src/scenario/angular-bootstrap.js index 264ce718..1852e479 100644 --- a/src/scenario/angular-bootstrap.js +++ b/src/scenario/angular-bootstrap.js @@ -1,3 +1,5 @@ +'use strict'; + (function(previousOnLoad){ var prefix = (function(){ var filename = /(.*\/)angular-bootstrap.js(#(.*))?/; diff --git a/src/scenario/dsl.js b/src/scenario/dsl.js index 60b05cd6..b4788ad9 100644 --- a/src/scenario/dsl.js +++ b/src/scenario/dsl.js @@ -1,3 +1,5 @@ +'use strict'; + /** * Shared DSL statements that are useful to all scenarios. */ diff --git a/src/scenario/matchers.js b/src/scenario/matchers.js index 8ef154e9..183dce46 100644 --- a/src/scenario/matchers.js +++ b/src/scenario/matchers.js @@ -1,3 +1,5 @@ +'use strict'; + /** * Matchers for implementing specs. Follows the Jasmine spec conventions. */ diff --git a/src/scenario/output/Html.js b/src/scenario/output/Html.js index c1b15239..2098f214 100644 --- a/src/scenario/output/Html.js +++ b/src/scenario/output/Html.js @@ -1,3 +1,5 @@ +'use strict'; + /** * User Interface for the Scenario Runner. * diff --git a/src/scenario/output/Json.js b/src/scenario/output/Json.js index 1e3bef6b..c024d923 100644 --- a/src/scenario/output/Json.js +++ b/src/scenario/output/Json.js @@ -1,3 +1,5 @@ +'use strict'; + /** * Generates JSON output into a context. */ diff --git a/src/scenario/output/Object.js b/src/scenario/output/Object.js index 1f29af9c..621b816f 100644 --- a/src/scenario/output/Object.js +++ b/src/scenario/output/Object.js @@ -1,3 +1,5 @@ +'use strict'; + /** * Creates a global value $result with the result of the runner. */ diff --git a/src/scenario/output/Xml.js b/src/scenario/output/Xml.js index 1a4c362c..9a2071b9 100644 --- a/src/scenario/output/Xml.js +++ b/src/scenario/output/Xml.js @@ -1,3 +1,5 @@ +'use strict'; + /** * Generates XML output into a context. */ |
