diff options
Diffstat (limited to 'test/widgetsSpec.js')
| -rw-r--r-- | test/widgetsSpec.js | 14 | 
1 files changed, 14 insertions, 0 deletions
| diff --git a/test/widgetsSpec.js b/test/widgetsSpec.js index 0eabc738..2812614f 100644 --- a/test/widgetsSpec.js +++ b/test/widgetsSpec.js @@ -463,6 +463,20 @@ describe("widget", function(){          expect(scope.selection).toBe(scope.objs[0]);        }); +      it('should compile children of a select without a name, but not create a model for it', +          function() { +        compile('<select>' + +                  '<option selected="true">{{a}}</option>' + +                  '<option value="">{{b}}</option>' + +                  '<option>C</option>' + +                '</select>'); +        scope.a = 'foo'; +        scope.b = 'bar'; +        scope.$eval(); + +        expect(scope.$element.text()).toBe('foobarC'); +      }) +      });      describe('select-multiple', function(){ | 
