diff options
| author | Andres Ornelas | 2010-06-09 15:38:56 -0700 |
|---|---|---|
| committer | Andres Ornelas | 2010-06-09 15:38:56 -0700 |
| commit | d0a468153d98c892323cb135b509cb46f67e44fd (patch) | |
| tree | 935722bc883edb555fc794f564491cb8a54cf862 | |
| parent | 85fac4d78c131771d7fdd46d6ccd44bae92419cd (diff) | |
| download | angular.js-d0a468153d98c892323cb135b509cb46f67e44fd.tar.bz2 | |
fixed undefined testWindow bug
| -rw-r--r-- | src/scenario/DSL.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scenario/DSL.js b/src/scenario/DSL.js index feedcdcc..194a28d6 100644 --- a/src/scenario/DSL.js +++ b/src/scenario/DSL.js @@ -2,7 +2,7 @@ angular.scenario.dsl.browser = { navigateTo: function(url){ $scenario.addStep('Navigate to: ' + url, function(done){ var self = this; - self.testFrame.load(function(){ + this.testFrame.load(function(){ self.testFrame.unbind(); self.testWindow = self.testFrame[0].contentWindow; self.testDocument = jQuery(self.testWindow.document); @@ -11,7 +11,7 @@ angular.scenario.dsl.browser = { self.notifyWhenNoOutstandingRequests(done); }); if (this.testFrame.attr('src') == url) { - this.testWindow.location.reload(); + this.testFrame[0].contentWindow.location.reload(); } else { this.testFrame.attr('src', url); } |
