From 9fdb09ebf86f4bc85ded08371fbafbab75aba8bf Mon Sep 17 00:00:00 2001 From: Di Peng Date: Sun, 5 Jun 2011 11:44:28 -0700 Subject: added input#val method Closes #237 --- test/scenario/dslSpec.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/scenario/dslSpec.js b/test/scenario/dslSpec.js index e1918ca7..1d4ee360 100644 --- a/test/scenario/dslSpec.js +++ b/test/scenario/dslSpec.js @@ -530,8 +530,15 @@ describe("angular.scenario.dsl", function() { chain.select('foo'); expect($root.futureError).toMatch(/did not match/); }); - }); + describe('val', function() { + it('should return value in text input', function() { + doc.append(''); + $root.dsl.input('test.input').val(); + expect($root.futureResult).toEqual("something"); + }); + }); + }); describe('Textarea', function() { -- cgit v1.2.3