diff options
author | Richard Gibson <richard.gibson@gmail.com> | 2013-01-27 23:34:38 -0500 |
---|---|---|
committer | Richard Gibson <richard.gibson@gmail.com> | 2013-02-07 15:16:28 -0500 |
commit | 363299ac24aebbf2445207621840f44fcaaf670a (patch) | |
tree | 50f8e3041341118cb713e780a5cfa97853a6af89 /test/unit/selector.js | |
parent | f3db084f7cc73379b0d6f5341c987e2a801ea032 (diff) | |
download | jquery-363299ac24aebbf2445207621840f44fcaaf670a.tar.gz jquery-363299ac24aebbf2445207621840f44fcaaf670a.zip |
Ref #13316: Sync all documents on full vs. minified source. Close gh-1147.
Diffstat (limited to 'test/unit/selector.js')
-rw-r--r-- | test/unit/selector.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/unit/selector.js b/test/unit/selector.js index 07e563da3..8338b1d34 100644 --- a/test/unit/selector.js +++ b/test/unit/selector.js @@ -175,10 +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"] ); }); -testIframe("selector/sizzle_cache", "Sizzle cache collides with multiple Sizzles on a page", function( jQuery, window, document ) { - var $cached = window["$cached"]; - - expect(3); +testIframeWithCallback("Sizzle cache collides with multiple Sizzles on a page", "selector/sizzle_cache.html", function( $cached, jQuery, document ) { + expect(4); + notStrictEqual( jQuery, $cached, "Loaded two engines" ); 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" ); |