From 9e0fa5b7c829fcc58a21ab9c3f0cf6492cf793af Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Tue, 25 Jan 2011 17:51:01 -0800 Subject: compile but don't bind option elements nested in a nameless select otherwise an exception is thrown unexpectidly --- test/widgetsSpec.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test') 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(''); + scope.a = 'foo'; + scope.b = 'bar'; + scope.$eval(); + + expect(scope.$element.text()).toBe('foobarC'); + }) + }); describe('select-multiple', function(){ -- cgit v1.2.3