aboutsummaryrefslogtreecommitdiffstats
path: root/test/widgetsSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/widgetsSpec.js')
-rw-r--r--test/widgetsSpec.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/widgetsSpec.js b/test/widgetsSpec.js
index ceec2c90..7253c26f 100644
--- a/test/widgetsSpec.js
+++ b/test/widgetsSpec.js
@@ -41,6 +41,13 @@ describe("widget", function(){
expect(scope.$get('name')).toEqual('Kai');
expect(scope.$get('count')).toEqual(2);
});
+
+ it('should allow complex refernce binding', function(){
+ compile('<div ng:init="obj={abc:{}}">'+
+ '<input type="Text" name="obj[\'abc\'].name" value="Misko""/>'+
+ '</div>');
+ expect(scope.obj['abc'].name).toEqual('Misko');
+ });
describe("ng:format", function(){