aboutsummaryrefslogtreecommitdiffstats
path: root/src/scenario/DSL.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/scenario/DSL.js')
-rw-r--r--src/scenario/DSL.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scenario/DSL.js b/src/scenario/DSL.js
index f1b9c226..b318e99c 100644
--- a/src/scenario/DSL.js
+++ b/src/scenario/DSL.js
@@ -4,8 +4,8 @@ angular.scenario.dsl.browser = {
var self = this;
self.testFrame.load(function(){
self.testFrame.unbind();
- self.testDocument = jQuery(self.testWindow.document);
self.testWindow = self.testFrame[0].contentWindow;
+ self.testDocument = jQuery(self.testWindow.document);
self.$browser = self.testWindow.angular.service.$browser();
self.notifyWhenNoOutstandingRequests = bind(self.$browser, self.$browser.notifyWhenNoOutstandingRequests);
self.notifyWhenNoOutstandingRequests(done);