@@ -12036,16 +12036,23 @@ describe('$compile', function() {
12036
12036
}));
12037
12037
});
12038
12038
inject(function($compile, $rootScope) {
12039
- $compile('<div attr-exposer ng-attr-title="12" ng-attr-super-title="34">')($rootScope);
12039
+ $compile('<div attr-exposer ng-attr-title="12" ng-attr-super-title="34" ng-attr-camel_title="56" >')($rootScope);
12040
12040
$rootScope.$apply();
12041
+
12041
12042
expect(attrs.title).toBe('12');
12042
12043
expect(attrs.$attr.title).toBe('title');
12043
12044
expect(attrs.ngAttrTitle).toBeUndefined();
12044
12045
expect(attrs.$attr.ngAttrTitle).toBeUndefined();
12046
+
12045
12047
expect(attrs.superTitle).toBe('34');
12046
12048
expect(attrs.$attr.superTitle).toBe('super-title');
12047
12049
expect(attrs.ngAttrSuperTitle).toBeUndefined();
12048
12050
expect(attrs.$attr.ngAttrSuperTitle).toBeUndefined();
12051
+
12052
+ expect(attrs.cameltitle).toBe('56');
12053
+ expect(attrs.$attr.cameltitle).toBe('camelTitle');
12054
+ expect(attrs.ngAttrCameltitle).toBeUndefined();
12055
+ expect(attrs.$attr.ngAttrCameltitle).toBeUndefined();
12049
12056
});
12050
12057
})
12051
12058
@@ -12303,12 +12310,23 @@ describe('$compile', function() {
12303
12310
}));
12304
12311
});
12305
12312
inject(function($compile, $rootScope) {
12306
- $compile('<div attr-exposer ng-prop-title="42 ">')($rootScope);
12313
+ $compile('<div attr-exposer ng-prop-title="12" ng-prop-super-title="34" ng-prop-camel_title="56 ">')($rootScope);
12307
12314
$rootScope.$apply();
12315
+
12308
12316
expect(attrs.title).toBeUndefined();
12309
12317
expect(attrs.$attr.title).toBeUndefined();
12310
- expect(attrs.ngPropTitle).toBe('42 ');
12318
+ expect(attrs.ngPropTitle).toBe('12 ');
12311
12319
expect(attrs.$attr.ngPropTitle).toBe('ng-prop-title');
12320
+
12321
+ expect(attrs.superTitle).toBeUndefined();
12322
+ expect(attrs.$attr.superTitle).toBeUndefined();
12323
+ expect(attrs.ngPropSuperTitle).toBe('34');
12324
+ expect(attrs.$attr.ngPropSuperTitle).toBe('ng-prop-super-title');
12325
+
12326
+ expect(attrs.camelTitle).toBeUndefined();
12327
+ expect(attrs.$attr.camelTitle).toBeUndefined();
12328
+ expect(attrs.ngPropCamelTitle).toBe('56');
12329
+ expect(attrs.$attr.ngPropCamelTitle).toBe('ng-prop-camel_title');
12312
12330
});
12313
12331
});
12314
12332
0 commit comments