added input#val method

Closes #237
This commit is contained in:
Di Peng
2011-06-05 11:44:28 -07:00
committed by Igor Minar
parent 1eebb771e3
commit 9fdb09ebf8
2 changed files with 16 additions and 1 deletions

View File

@@ -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('<input name="test.input" value="something">');
$root.dsl.input('test.input').val();
expect($root.futureResult).toEqual("something");
});
});
});
describe('Textarea', function() {