]> source.dussan.org Git - jquery.git/commitdiff
Tests: Make the support tests pass on Firefox 4x/5x/60
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Tue, 7 Jan 2020 16:05:14 +0000 (17:05 +0100)
committerGitHub <noreply@github.com>
Tue, 7 Jan 2020 16:05:14 +0000 (17:05 +0100)
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

test/unit/support.js

index be1d89c9df7103d9b9d0194f2873d30c94155479..d7de8ac5c89e1b2c4fc1686e2943a80acf70ebdc 100644 (file)
@@ -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;