aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWoody Peterson2013-09-04 08:01:43 -0700
committerPete Bacon Darwin2013-09-11 22:19:24 +0100
commit64e7b7774e3d0cb2e36efe00d550c7e53ec7efa5 (patch)
tree6ea0fd5d4ef2858ad18c3dc0a4a506d8e85fbe42
parent21e9e8cf68ef007136da6cc212d2f1f252fb668a (diff)
downloadangular.js-64e7b7774e3d0cb2e36efe00d550c7e53ec7efa5.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 c5ef30fc..4e99bbbd 100644
--- a/test/ngScenario/ApplicationSpec.js
+++ b/test/ngScenario/ApplicationSpec.js
@@ -29,7 +29,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;
});