From e7e8dad3b3c460bdfb8d7ee0515103b59403cd92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Go=C5=82=C4=99biowski-Owczarek?= Date: Sun, 9 Dec 2018 03:23:09 +0100 Subject: [PATCH] test(ngSanitize): disable a failing Edge test in all versions, including 18 It's been only disabled on Edge 16/17 so far which made it fail in Edge 18. Closes #16786 --- test/ngSanitize/sanitizeSpec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/ngSanitize/sanitizeSpec.js b/test/ngSanitize/sanitizeSpec.js index 5e8a020c5870..ac3c44b3d59c 100644 --- a/test/ngSanitize/sanitizeSpec.js +++ b/test/ngSanitize/sanitizeSpec.js @@ -261,8 +261,8 @@ describe('HTML', function() { }); }); - if (!/Edge\/(16|17)/.test(window.navigator.userAgent)) { - // Skip test on Edge 16 due to browser bug. + if (!/Edge\/\d{2,}/.test(window.navigator.userAgent)) { + // Skip test on Edge due to a browser bug. it('should throw on a form with an input named "nextSibling"', function() { inject(function($sanitize) {