From 915939396a2b4dae2f418a9406275c4b7256a130 Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Thu, 3 Jan 2019 18:03:05 +0200 Subject: [PATCH] test(ngHref): only run Edge-specific test on relevant Edge versions --- test/ng/directive/ngHrefSpec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/ng/directive/ngHrefSpec.js b/test/ng/directive/ngHrefSpec.js index 2c5e99c07..876699636 100644 --- a/test/ng/directive/ngHrefSpec.js +++ b/test/ng/directive/ngHrefSpec.js @@ -68,8 +68,8 @@ describe('ngHref', function() { })); - // Support: IE 9-11 only, Edge 12-15+ - if (msie || /\bEdge\/[\d.]+\b/.test(window.navigator.userAgent)) { + // Support: IE 9-11 only, Edge 12-17 + if (msie || /\bEdge\/1[2-7]\.[\d.]+\b/.test(window.navigator.userAgent)) { // IE/Edge fail when setting a href to a URL containing a % that isn't a valid escape sequence // See https://github.com/angular/angular.js/issues/13388 it('should throw error if ng-href contains a non-escaped percent symbol', inject(function($rootScope, $compile) {