aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/scenario/DSL.js4
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();