Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 7835fc3

Browse files
committed
fixup! feat($compile): add support for arbitrary property and event bindings
1 parent c032255 commit 7835fc3

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Diff for: test/ng/compileSpec.js

+10-10
Original file line numberDiff line numberDiff line change
@@ -12036,7 +12036,7 @@ describe('$compile', function() {
1203612036
}));
1203712037
});
1203812038
inject(function($compile, $rootScope) {
12039-
$compile('<div attr-exposer ng-attr-title="12" ng-attr-super-title="34" ng-attr-camel_title="56">')($rootScope);
12039+
$compile('<div attr-exposer ng-attr-title="12" ng-attr-super-title="34" ng-attr-my-camel_title="56">')($rootScope);
1204012040
$rootScope.$apply();
1204112041

1204212042
expect(attrs.title).toBe('12');
@@ -12049,10 +12049,10 @@ describe('$compile', function() {
1204912049
expect(attrs.ngAttrSuperTitle).toBeUndefined();
1205012050
expect(attrs.$attr.ngAttrSuperTitle).toBeUndefined();
1205112051

12052-
expect(attrs.cameltitle).toBe('56');
12053-
expect(attrs.$attr.cameltitle).toBe('camelTitle');
12054-
expect(attrs.ngAttrCameltitle).toBeUndefined();
12055-
expect(attrs.$attr.ngAttrCameltitle).toBeUndefined();
12052+
expect(attrs.myCameltitle).toBe('56');
12053+
expect(attrs.$attr.myCameltitle).toBe('my-camelTitle');
12054+
expect(attrs.ngAttrMyCameltitle).toBeUndefined();
12055+
expect(attrs.$attr.ngAttrMyCameltitle).toBeUndefined();
1205612056
});
1205712057
})
1205812058

@@ -12310,7 +12310,7 @@ describe('$compile', function() {
1231012310
}));
1231112311
});
1231212312
inject(function($compile, $rootScope) {
12313-
$compile('<div attr-exposer ng-prop-title="12" ng-prop-super-title="34" ng-prop-camel_title="56">')($rootScope);
12313+
$compile('<div attr-exposer ng-prop-title="12" ng-prop-super-title="34" ng-prop-my-camel_title="56">')($rootScope);
1231412314
$rootScope.$apply();
1231512315

1231612316
expect(attrs.title).toBeUndefined();
@@ -12323,10 +12323,10 @@ describe('$compile', function() {
1232312323
expect(attrs.ngPropSuperTitle).toBe('34');
1232412324
expect(attrs.$attr.ngPropSuperTitle).toBe('ng-prop-super-title');
1232512325

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');
12326+
expect(attrs.myCamelTitle).toBeUndefined();
12327+
expect(attrs.$attr.myCamelTitle).toBeUndefined();
12328+
expect(attrs.ngPropMyCamelTitle).toBe('56');
12329+
expect(attrs.$attr.ngPropMyCamelTitle).toBe('ng-prop-my-camel_title');
1233012330
});
1233112331
});
1233212332

0 commit comments

Comments
 (0)