Commit 6971d9d8 authored by Richard Gibson's avatar Richard Gibson

Fix 363299ac failures

parent 363299ac
......@@ -17,8 +17,5 @@
<div class="test">
<a href="#" id="collision">Worlds collide</a>
</div>
<script>
window.parent.iframeCallback( $cached, jQuery, document );
</script>
</body>
</html>
<?php
# Support: Firefox
header("X-Content-Security-Policy: default-src 'self';");
header("X-WebKit-CSP: script-src 'self'");
# Support: Webkit, Safari 5
# http://stackoverflow.com/questions/13663302/why-does-my-content-security-policy-work-everywhere-but-safari
header("X-WebKit-CSP: script-src " . $_SERVER["HTTP_HOST"] . " 'self'");
header("Content-Security-Policy: default-src 'self'");
?>
<!DOCTYPE html>
<html>
......
......@@ -175,7 +175,9 @@ testIframe("selector/html5_selector", "attributes - jQuery.attr", function( jQue
t( "Improperly named form elements do not interfere with form selections (#9570)", "form[name='formName']", ["form1"] );
});
testIframeWithCallback("Sizzle cache collides with multiple Sizzles on a page", "selector/sizzle_cache.html", function( $cached, jQuery, document ) {
testIframe("selector/sizzle_cache", "Sizzle cache collides with multiple Sizzles on a page", function( jQuery, window, document ) {
var $cached = window["$cached"];
expect(4);
notStrictEqual( jQuery, $cached, "Loaded two engines" );
deepEqual( $cached(".test a").get(), [ document.getElementById("collision") ], "Select collision anchor with first sizzle" );
......
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