test(ngHref): only run Edge-specific test on relevant Edge versions

This commit is contained in:
George Kalpakas
2019-01-03 18:03:05 +02:00
parent 78e17f5729
commit aed34c75be
+2 -2
View File
@@ -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) {