mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00: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:
parent
bc72211e7b
commit
13f58447e2
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,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;
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue