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.
This commit is contained in:
Woody Peterson 2013-09-04 08:01:43 -07:00 committed by Pete Bacon Darwin
parent 21e9e8cf68
commit 64e7b7774e

View file

@ -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;
});