Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
No ticket. Restore support for Safari 5.1 in test/unit/support.js for…
… now.
  • Loading branch information
mgol committed Sep 7, 2013
1 parent 5093b89 commit 9968364
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions test/unit/support.js
Expand Up @@ -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" );
}
);
}

0 comments on commit 9968364

Please sign in to comment.