Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 64e7b77

Browse files
woahdaepetebacondarwin
authored andcommitted
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.
1 parent 21e9e8c commit 64e7b77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/ngScenario/ApplicationSpec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe('angular.scenario.Application', function() {
2929
return {x:counter++, document:{x:counter++}};
3030
};
3131
app.navigateTo('http://www.google.com/');
32-
app.executeAction(function($document, $window) {
32+
app.executeAction(function($window, $document) {
3333
testWindow = $window;
3434
testDocument = $document;
3535
});

0 commit comments

Comments
 (0)