diff options
| author | Andres Ornelas | 2010-05-26 16:09:48 -0700 |
|---|---|---|
| committer | Andres Ornelas | 2010-05-26 16:09:48 -0700 |
| commit | 177873df86b6b069892184f24518959e7cef33cd (patch) | |
| tree | 0614e09fa152607267835ff9b91f373e5ea635ce | |
| parent | aedf12f25e42877a302a99d906e6397bde01dcce (diff) | |
| download | angular.js-177873df86b6b069892184f24518959e7cef33cd.tar.bz2 | |
navigate to scenario waits for outstanding requests to clear before proceeding.
| -rw-r--r-- | src/scenario/DSL.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/scenario/DSL.js b/src/scenario/DSL.js index 8cbb256d..f1b9c226 100644 --- a/src/scenario/DSL.js +++ b/src/scenario/DSL.js @@ -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(); |
