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

Commit 097aa69

Browse files
committed
test(ngHref): only run Edge-specific test on relevant Edge versions
1 parent 00b6247 commit 097aa69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/ng/directive/ngHrefSpec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ describe('ngHref', function() {
6868
}));
6969

7070

71-
// Support: IE 9-11 only, Edge 12-15+
72-
if (msie || /\bEdge\/[\d.]+\b/.test(window.navigator.userAgent)) {
71+
// Support: IE 9-11 only, Edge 12-17
72+
if (msie || /\bEdge\/1[2-7]\.[\d.]+\b/.test(window.navigator.userAgent)) {
7373
// IE/Edge fail when setting a href to a URL containing a % that isn't a valid escape sequence
7474
// See https://github.com/angular/angular.js/issues/13388
7575
it('should throw error if ng-href contains a non-escaped percent symbol', inject(function($rootScope, $compile) {

0 commit comments

Comments
 (0)