From 64e7b7774e3d0cb2e36efe00d550c7e53ec7efa5 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(-) (limited to 'test') 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; }); -- cgit v1.2.3