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

Commit ea270d7

Browse files
author
Jason Bedard
committed
fixup! feat($compile): add support for arbitrary property and event bindings
1 parent 11062ac commit ea270d7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/ng/compileSpec.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11714,6 +11714,10 @@ describe('$compile', function() {
1171411714
$compile('<button ng-attr-onclick="{{onClickJs}}"></script>');
1171511715
}).toThrowMinErr(
1171611716
'$compile', 'nodomevents', 'Interpolations for HTML DOM event attributes are disallowed');
11717+
expect(function() {
11718+
$compile('<button ng-attr-ONCLICK="{{onClickJs}}"></script>');
11719+
}).toThrowMinErr(
11720+
'$compile', 'nodomevents', 'Interpolations for HTML DOM event attributes are disallowed');
1171711721
}));
1171811722

1171911723
it('should pass through arbitrary values on onXYZ event attributes that contain a hyphen', inject(function($compile, $rootScope) {

0 commit comments

Comments
 (0)