aboutsummaryrefslogtreecommitdiffstats
path: root/test/scenario/DSLSpec.js
diff options
context:
space:
mode:
authorAndres Ornelas2010-08-04 11:47:10 -0700
committerAndres Ornelas2010-08-04 11:47:10 -0700
commit26ed747588d2e7bceddcb4ccd9bacd5f51b9fec8 (patch)
tree8e4fcf0b64b3af10532ba31fce6ca91fd396e4ae /test/scenario/DSLSpec.js
parentec12285c9d213a50b86b2ff8d968686acd6d1693 (diff)
downloadangular.js-26ed747588d2e7bceddcb4ccd9bacd5f51b9fec8.tar.bz2
test passing with repeater.count
Diffstat (limited to 'test/scenario/DSLSpec.js')
-rw-r--r--test/scenario/DSLSpec.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/scenario/DSLSpec.js b/test/scenario/DSLSpec.js
index 533d34ac..47bedb80 100644
--- a/test/scenario/DSLSpec.js
+++ b/test/scenario/DSLSpec.js
@@ -46,8 +46,12 @@ describe("DSL", function() {
var future = repeater('.repeater-row').count();
expect(future.name).toEqual("repeater '.repeater-row' count");
executeFuture(future, "<div class='repeater-row'>a</div>" +
- "<div class='repeater-row'>b</div>");
- Expect(future).toEqual(2);
+ "<div class='repeater-row'>b</div>",
+ function(value) {
+ future.fulfill(value);
+ });
+ expect(future.fulfilled).toBeTruthy();
+ expect(future.value).toEqual(2);
});
});
});