mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-20 16:30:26 +00:00
navigate to scenario waits for outstanding requests to clear before proceeding.
This commit is contained in:
parent
aedf12f25e
commit
177873df86
1 changed files with 3 additions and 1 deletions
|
|
@ -6,7 +6,9 @@ angular.scenario.dsl.browser = {
|
|||
self.testFrame.unbind();
|
||||
self.testDocument = jQuery(self.testWindow.document);
|
||||
self.testWindow = self.testFrame[0].contentWindow;
|
||||
done();
|
||||
self.$browser = self.testWindow.angular.service.$browser();
|
||||
self.notifyWhenNoOutstandingRequests = bind(self.$browser, self.$browser.notifyWhenNoOutstandingRequests);
|
||||
self.notifyWhenNoOutstandingRequests(done);
|
||||
});
|
||||
if (this.testFrame.attr('src') == url) {
|
||||
this.testWindow.location.reload();
|
||||
|
|
|
|||
Loading…
Reference in a new issue