From 13f58447e239b29e576cdbf80629a32ba907ed2a Mon Sep 17 00:00:00 2001 From: Woody Peterson Date: Wed, 4 Sep 2013 08:01:43 -0700 Subject: 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. --- test/ngScenario/ApplicationSpec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }); -- cgit v1.2.3