Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 13f5844

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 bc72211 commit 13f5844

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/ngScenario/ApplicationSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe('angular.scenario.Application', function() {
2020
return {x:counter++, document:{x:counter++}};
2121
};
2222
app.navigateTo('http://www.google.com/');
23-
app.executeAction(function($document, $window) {
23+
app.executeAction(function($window, $document) {
2424
testWindow = $window;
2525
testDocument = $document;
2626
});

0 commit comments

Comments
 (0)