diff options
author | Michał Gołębiowski <m.goleb@gmail.com> | 2013-09-07 02:30:19 +0200 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2013-09-07 02:30:19 +0200 |
commit | 9968364d145b1de5276e2864357dad26d2d14546 (patch) | |
tree | 4070999b67e5c3f5c2c114599c534d56dd521ba1 /test | |
parent | 5093b89f08aa4565d1987666d998d16e2e3b6f4a (diff) | |
download | jquery-9968364d145b1de5276e2864357dad26d2d14546.tar.gz jquery-9968364d145b1de5276e2864357dad26d2d14546.zip |
No ticket. Restore support for Safari 5.1 in test/unit/support.js for now.
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/support.js | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/test/unit/support.js b/test/unit/support.js index fda26870b..2b029ed1e 100644 --- a/test/unit/support.js +++ b/test/unit/support.js @@ -158,10 +158,16 @@ if ( jQuery.css ) { })(); -testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Security/CSP) restrictions", - "support/csp.php", - function( support ) { - expect( 1 ); - deepEqual( jQuery.extend( {}, support ), computedSupport, "No violations of CSP polices" ); - } -); +// Support: Safari 5.1 +// Shameless browser-sniff, but Safari 5.1 mishandles CSP +if ( !( typeof navigator !== "undefined" && + (/ AppleWebKit\/\d.*? Version\/(\d+)/.exec(navigator.userAgent) || [])[1] < 6 ) ) { + + testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Security/CSP) restrictions", + "support/csp.php", + function( support ) { + expect( 1 ); + deepEqual( jQuery.extend( {}, support ), computedSupport, "No violations of CSP polices" ); + } + ); +} |