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

No ticket. Restore support for Safari 5.1 in test/unit/support.js for now. (cherry-picked from badcd1b6)
parent be1e4eee
...@@ -423,10 +423,16 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo ...@@ -423,10 +423,16 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo
})(); })();
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" );
}
);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment