diff options
| author | Andres Ornelas | 2010-08-05 16:03:47 -0700 | 
|---|---|---|
| committer | Andres Ornelas | 2010-08-05 16:03:47 -0700 | 
| commit | 989cffb43502744ab05baa741420c2082f137d69 (patch) | |
| tree | a4990ff1f39e52c53d914935065c582400398fa6 /src/scenario | |
| parent | 643b43ffe5bd481b129484828fb35e2ab71a7d4c (diff) | |
| download | angular.js-989cffb43502744ab05baa741420c2082f137d69.tar.bz2 | |
fix build breakage by returning the added futures in the DSL
Diffstat (limited to 'src/scenario')
| -rw-r--r-- | src/scenario/DSL.js | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/src/scenario/DSL.js b/src/scenario/DSL.js index 944ca6f5..26157059 100644 --- a/src/scenario/DSL.js +++ b/src/scenario/DSL.js @@ -1,6 +1,6 @@  angular.scenario.dsl.browser = {    navigateTo: function(url){ -    $scenario.addFuture('Navigate to: ' + url, function(done){ +    return $scenario.addFuture('Navigate to: ' + url, function(done){        var self = this;        this.testFrame.load(function(){          self.testFrame.unbind(); @@ -24,7 +24,7 @@ angular.scenario.dsl.input = function(selector) {    var namePrefix = "input '" + selector + "'";    return {      enter: function(value) { -    $scenario.addFuture(namePrefix + " enter '" + value + "'", function(done) { +      return $scenario.addFuture(namePrefix + " enter '" + value + "'", function(done) {          var input = this.testDocument.find('input[name=' + selector + ']');          input.val(value);          this.testWindow.angular.element(input[0]).trigger('change'); @@ -32,7 +32,7 @@ angular.scenario.dsl.input = function(selector) {        });      },      select: function(value) { -      $scenario.addFuture(namePrefix + " select '" + value + "'", function(done) { +      return $scenario.addFuture(namePrefix + " select '" + value + "'", function(done) {          var input = this.testDocument.            find(':radio[name$=@' + selector + '][value=' + value + ']');          jqLiteWrap(input[0]).trigger('click'); @@ -47,7 +47,7 @@ angular.scenario.dsl.repeater = function(selector) {    var namePrefix = "repeater '" + selector + "'";    return {      count: function() { -    $scenario.addFuture(namePrefix + ' count', function(done) { +      return $scenario.addFuture(namePrefix + ' count', function(done) {            done(this.testDocument.find(selector).size());        });      }  | 
