Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

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

Closed
wants to merge 1 commit into from

2 participants

Richard Gibson Dave Methvin
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.
4  test/data/selector/sizzle_cache.html
@@ -4,9 +4,9 @@
4 4
 	<meta http-equiv="Content-type" content="text/html; charset=utf-8">
5 5
 	<title>jQuery selector - sizzle cache</title>
6 6
 
7  
-	<script src="http://code.jquery.com/jquery-git.js"></script>
  7
+	<script src="../include_js.php"></script>
8 8
 	<script>
9  
-		var $git = jQuery.noConflict(true);
  9
+		var $cached = jQuery.noConflict(true);
10 10
 	</script>
11 11
 	<script src="../include_js.php"></script>
12 12
 
4  test/unit/selector.js
@@ -133,10 +133,10 @@ testIframe("html5_selector", "attributes - jQuery.attr", function( jQuery, windo
133 133
 });
134 134
 
135 135
 testIframe("sizzle_cache", "Sizzle cache collides with multiple Sizzles on a page", function( jQuery, window, document ) {
136  
-	var $git = window.$git;
  136
+	var $cached = window.$cached;
137 137
 
138 138
 	expect(3);
139  
-	deepEqual( $git('.test a').get(), [ document.getElementById('collision') ], "Select collision anchor with first sizzle" );
  139
+	deepEqual( $cached('.test a').get(), [ document.getElementById('collision') ], "Select collision anchor with first sizzle" );
140 140
 	equal( jQuery('.evil a').length, 0, "Select nothing with second sizzle" );
141 141
 	equal( jQuery('.evil a').length, 0, "Select nothing again with second sizzle" );
142 142
 });
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.