diff --git a/test/ng/directive/booleanAttrsSpec.js b/test/ng/directive/booleanAttrsSpec.js index 77d5c0f58c54..2a4c9f0de15c 100644 --- a/test/ng/directive/booleanAttrsSpec.js +++ b/test/ng/directive/booleanAttrsSpec.js @@ -283,6 +283,16 @@ describe('ngHref', function() { expect(element.attr('href')).toEqual(undefined); })); + if (msie) { + it('should throw error if ng-href contains a non-escaped percent symbol', inject(function($rootScope, $compile) { + element = $compile('')($rootScope); + + expect(function() { + $rootScope.$digest(); + }).toThrow(); + })); + } + if (isDefined(window.SVGElement)) { describe('SVGAElement', function() { it('should interpolate the expression and bind to xlink:href', inject(function($compile, $rootScope) {