Commit 6c8dd7e7 authored by Richard Gibson's avatar Richard Gibson Committed by Dave Methvin

Fix #10931: Make unit tests work without web access.

Applies https://github.com/gibson042/jquery/tree/10931 to
  dd900460
parent cc5e8e38
......@@ -4,9 +4,9 @@
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>jQuery selector - sizzle cache</title>
<script src="http://code.jquery.com/jquery-git.js"></script>
<script src="../include_js.php"></script>
<script>
var $git = jQuery.noConflict(true);
var $cached = jQuery.noConflict(true);
</script>
<script src="../include_js.php"></script>
......
......@@ -133,10 +133,10 @@ testIframe("html5_selector", "attributes - jQuery.attr", function( jQuery, windo
});
testIframe("sizzle_cache", "Sizzle cache collides with multiple Sizzles on a page", function( jQuery, window, document ) {
var $git = window.$git;
var $cached = window.$cached;
expect(3);
deepEqual( $git('.test a').get(), [ document.getElementById('collision') ], "Select collision anchor with first sizzle" );
deepEqual( $cached('.test a').get(), [ document.getElementById('collision') ], "Select collision anchor with first sizzle" );
equal( jQuery('.evil a').length, 0, "Select nothing with second sizzle" );
equal( jQuery('.evil a').length, 0, "Select nothing again with second 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