diff options
| author | Woody Peterson | 2013-09-04 08:01:43 -0700 | 
|---|---|---|
| committer | Pete Bacon Darwin | 2013-09-11 22:21:12 +0100 | 
| commit | 13f58447e239b29e576cdbf80629a32ba907ed2a (patch) | |
| tree | c13e6f34c68481843eb8eccfce454c10f5098bcc | |
| parent | bc72211e7b8e28e7b8b55b98fb3eafbb46a1dcf4 (diff) | |
| download | angular.js-13f58447e239b29e576cdbf80629a32ba907ed2a.tar.bz2 | |
test($browser): correct false positive in ApplicationSpec.js
Previously, the check that Application should return a new $window and
$document had the arguments reversed in the first call to navigateTo;
thus, the subsequent check of inequality of $window and $document in the
next navigateTo call would always pass.
This corrects the argument order, which makes this test not succeptible
to false positives.
| -rw-r--r-- | test/ngScenario/ApplicationSpec.js | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/test/ngScenario/ApplicationSpec.js b/test/ngScenario/ApplicationSpec.js index 0236b8d7..ac3aa748 100644 --- a/test/ngScenario/ApplicationSpec.js +++ b/test/ngScenario/ApplicationSpec.js @@ -20,7 +20,7 @@ describe('angular.scenario.Application', function() {        return {x:counter++, document:{x:counter++}};      };      app.navigateTo('http://www.google.com/'); -    app.executeAction(function($document, $window) { +    app.executeAction(function($window, $document) {        testWindow = $window;        testDocument = $document;      }); | 
