aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2020-01-07 17:05:14 +0100
committerGitHub <noreply@github.com>2020-01-07 17:05:14 +0100
commitf0d5ec62c313ea2f8e0d675a876ef3db179d4c8d (patch)
treea0c329a4d7f14328ee916d80073b958f30391cf3 /test
parent4cbdc745cc32f0fb8865139df7caad075b05d2b8 (diff)
downloadjquery-f0d5ec62c313ea2f8e0d675a876ef3db179d4c8d.tar.gz
jquery-f0d5ec62c313ea2f8e0d675a876ef3db179d4c8d.zip
Tests: Make the support tests pass on Firefox 4x/5x/60
The check for old Firefox versions with different support test result only checked for Firefox 52 or 60. It now checks for 4x/5x/60 to understand more versions. Closes gh-4583
Diffstat (limited to 'test')
-rw-r--r--test/unit/support.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/support.js b/test/unit/support.js
index be1d89c9d..d7de8ac5c 100644
--- a/test/unit/support.js
+++ b/test/unit/support.js
@@ -307,7 +307,7 @@ testIframe(
expected = expectedMap.chrome;
} else if ( /\b(?:9|10)\.\d+(\.\d+)* safari/i.test( userAgent ) ) {
expected = expectedMap.safari_9_10;
- } else if ( /firefox\/(?:52|60)/i.test( userAgent ) ) {
+ } else if ( /firefox\/(?:4\d|5\d|60)/i.test( userAgent ) ) {
expected = expectedMap.firefox_60;
} else if ( /firefox/i.test( userAgent ) ) {
expected = expectedMap.firefox;