No ticket. Restore support for Safari 5.1 in test/unit/support.js for now.

This commit is contained in:
Michał Gołębiowski 2013-09-07 02:30:19 +02:00
parent 5093b89f08
commit 9968364d14

View File

@ -158,10 +158,16 @@ if ( jQuery.css ) {
})(); })();
testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Security/CSP) restrictions", // Support: Safari 5.1
"support/csp.php", // Shameless browser-sniff, but Safari 5.1 mishandles CSP
function( support ) { if ( !( typeof navigator !== "undefined" &&
expect( 1 ); (/ AppleWebKit\/\d.*? Version\/(\d+)/.exec(navigator.userAgent) || [])[1] < 6 ) ) {
deepEqual( jQuery.extend( {}, support ), computedSupport, "No violations of CSP polices" );
} 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" );
}
);
}