mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-04-01 22:10:24 +00:00
fix build breakage by returning the added futures in the DSL
This commit is contained in:
parent
643b43ffe5
commit
989cffb435
1 changed files with 4 additions and 4 deletions
|
|
@ -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());
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue