aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWoody Peterson2013-09-04 08:01:43 -0700
committerPete Bacon Darwin2013-09-11 22:21:12 +0100
commit13f58447e239b29e576cdbf80629a32ba907ed2a (patch)
treec13e6f34c68481843eb8eccfce454c10f5098bcc
parentbc72211e7b8e28e7b8b55b98fb3eafbb46a1dcf4 (diff)
downloadangular.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.js2
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;
});