diff options
author | Richard Gibson <richard.gibson@gmail.com> | 2012-01-12 12:39:08 -0500 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-01-12 20:04:17 -0500 |
commit | 6c8dd7e7d3a00133591d4f9c05c207900234e11e (patch) | |
tree | 1cf4bd0ea58630baa0a4886f5e26443a33022dce | |
parent | cc5e8e3866e5dac7eacda5927679573c8da79492 (diff) | |
download | jquery-6c8dd7e7d3a00133591d4f9c05c207900234e11e.tar.gz jquery-6c8dd7e7d3a00133591d4f9c05c207900234e11e.zip |
Fix #10931: Make unit tests work without web access.
Applies https://github.com/gibson042/jquery/tree/10931 to
dd900460ac6f77be71ceb878bc2cd1465397dc60
-rw-r--r-- | test/data/selector/sizzle_cache.html | 4 | ||||
-rw-r--r-- | test/unit/selector.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/data/selector/sizzle_cache.html b/test/data/selector/sizzle_cache.html index 4ad178a82..6221263fa 100644 --- a/test/data/selector/sizzle_cache.html +++ b/test/data/selector/sizzle_cache.html @@ -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> diff --git a/test/unit/selector.js b/test/unit/selector.js index 2c9dcec83..329ff820e 100644 --- a/test/unit/selector.js +++ b/test/unit/selector.js @@ -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" ); }); |