Skip to content

Loading…

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

Closed
wants to merge 1 commit into from

2 participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 4 deletions.
  1. +2 −2 test/data/selector/sizzle_cache.html
  2. +2 −2 test/unit/selector.js
View
4 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>
View
4 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" );
});
Something went wrong with that request. Please try again.