mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-24 03:55:49 +08:00
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:
committed by
Pete Bacon Darwin
parent
21e9e8cf68
commit
64e7b7774e
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user