diff options
Diffstat (limited to 'test/ng/directive/selectSpec.js')
| -rw-r--r-- | test/ng/directive/selectSpec.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/ng/directive/selectSpec.js b/test/ng/directive/selectSpec.js index d8fe150a..321990e8 100644 --- a/test/ng/directive/selectSpec.js +++ b/test/ng/directive/selectSpec.js @@ -61,6 +61,17 @@ describe('select', function() { }); + it('should not interfere with selection via selected attr if ngModel directive is not present', + function() { + compile('<select>' + + '<option>not me</option>' + + '<option selected>me!</option>' + + '<option>nah</option>' + + '</select>'); + expect(element).toEqualSelect('not me', ['me!'], 'nah'); + }); + + it('should require', function() { compile( '<select name="select" ng-model="selection" required ng-change="change()">' + |
