diff options
| author | Andres Ornelas | 2010-06-09 16:05:51 -0700 |
|---|---|---|
| committer | Andres Ornelas | 2010-06-09 16:05:51 -0700 |
| commit | bbb45a7eed5264a343c191f3abfbe6f6b5d51139 (patch) | |
| tree | 340453d4268200f36a7934274450502145e123cf /test/scenario/DSLSpec.js | |
| parent | 36b58b235eeca4e9580162a697d8a96c41263ebc (diff) | |
| parent | d0a468153d98c892323cb135b509cb46f67e44fd (diff) | |
| download | angular.js-bbb45a7eed5264a343c191f3abfbe6f6b5d51139.tar.bz2 | |
Merge branch 'repeater'
Diffstat (limited to 'test/scenario/DSLSpec.js')
| -rw-r--r-- | test/scenario/DSLSpec.js | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/test/scenario/DSLSpec.js b/test/scenario/DSLSpec.js index bed1f008..5aac9752 100644 --- a/test/scenario/DSLSpec.js +++ b/test/scenario/DSLSpec.js @@ -40,4 +40,16 @@ describe("DSL", function() { expect(lastDocument.find(':radio:checked').val()).toEqual('female'); }); }); -});
\ No newline at end of file + + describe('expect', function() { + var dslExpect = angular.scenario.dsl.expect; + describe('repeater', function() { + it('should check the count of repeated elements', function() { + dslExpect.repeater('.repeater-row').count.toEqual(2); + expect(lastStep.name).toEqual("Expect that there are 2 items in Repeater with selector '.repeater-row'"); + var html = "<div class='repeater-row'>a</div><div class='repeater-row'>b</div>"; + executeStep(lastStep, html); + }); + }); + }); +}); |
