diff options
author | Michał Gołębiowski <m.goleb@gmail.com> | 2014-01-22 21:49:10 +0100 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2014-01-22 21:49:10 +0100 |
commit | 3f3f458974fe0bdccfe9042c9503fd2d03e2f6ff (patch) | |
tree | 8b652bdd6c1b9076d5f50a15d1d1786c75e4023a | |
parent | 37d036a84cfcd39e3ca7723540c6a6791d58fc69 (diff) | |
download | jquery-3f3f458974fe0bdccfe9042c9503fd2d03e2f6ff.tar.gz jquery-3f3f458974fe0bdccfe9042c9503fd2d03e2f6ff.zip |
Tests: fix Safari userAgent detection
-rw-r--r-- | test/unit/support.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/support.js b/test/unit/support.js index 2f171a675..efd4f820b 100644 --- a/test/unit/support.js +++ b/test/unit/support.js @@ -131,7 +131,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec "radioValue": false, "reliableMarginRight": true }; - } else if ( /7\.0\.\d+ safari/i.test( userAgent ) ) { + } else if ( /7\.0(\.\d+|) safari/i.test( userAgent ) ) { expected = { "ajax": true, "boxSizingReliable": true, @@ -147,7 +147,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec "radioValue": true, "reliableMarginRight": true }; - } else if ( /6\.0\.\d+ safari/i.test( userAgent ) ) { + } else if ( /6\.0(\.\d+|) safari/i.test( userAgent ) ) { expected = { "ajax": true, "boxSizingReliable": true, @@ -163,7 +163,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec "radioValue": true, "reliableMarginRight": true }; - } else if ( /5\.1\.\d+ safari/i.test( userAgent ) ) { + } else if ( /5\.1(\.\d+|) safari/i.test( userAgent ) ) { expected = { "ajax":true, "boxSizingReliable": true, |