diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/scenario/dslSpec.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/scenario/dslSpec.js b/test/scenario/dslSpec.js index fd22303e..0338e884 100644 --- a/test/scenario/dslSpec.js +++ b/test/scenario/dslSpec.js @@ -486,5 +486,21 @@ describe("angular.scenario.dsl", function() { }); }); + + describe('Textarea', function() { + + it('should change value in textarea', function() { + doc.append('<textarea name="test.textarea">something</textarea>'); + var chain = $root.dsl.textarea('test.textarea'); + chain.enter('foo'); + expect(_jQuery('textarea[name="test.textarea"]').val()).toEqual('foo'); + }); + + it('should return error if no textarea exists', function() { + var chain = $root.dsl.input('test.textarea'); + chain.enter('foo'); + expect($root.futureError).toMatch(/did not match/); + }); + }); }); }); |
