From 6971d9d8e2b88d008884e0758c94c528dc97238c Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Thu, 7 Feb 2013 17:03:04 -0500 Subject: [PATCH] Fix 363299ac failures --- test/data/selector/sizzle_cache.html | 3 --- test/data/support/csp.php | 8 +++++++- test/unit/selector.js | 4 +++- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/test/data/selector/sizzle_cache.html b/test/data/selector/sizzle_cache.html index f4dc234d6..1055c75ae 100644 --- a/test/data/selector/sizzle_cache.html +++ b/test/data/selector/sizzle_cache.html @@ -17,8 +17,5 @@
Worlds collide
- diff --git a/test/data/support/csp.php b/test/data/support/csp.php index 9aa029b9c..f72aa0768 100644 --- a/test/data/support/csp.php +++ b/test/data/support/csp.php @@ -1,6 +1,12 @@ diff --git a/test/unit/selector.js b/test/unit/selector.js index 8338b1d34..22d7305eb 100644 --- a/test/unit/selector.js +++ b/test/unit/selector.js @@ -175,7 +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"] ); }); -testIframeWithCallback("Sizzle cache collides with multiple Sizzles on a page", "selector/sizzle_cache.html", function( $cached, jQuery, document ) { +testIframe("selector/sizzle_cache", "Sizzle cache collides with multiple Sizzles on a page", function( jQuery, window, document ) { + var $cached = window["$cached"]; + expect(4); notStrictEqual( jQuery, $cached, "Loaded two engines" ); deepEqual( $cached(".test a").get(), [ document.getElementById("collision") ], "Select collision anchor with first sizzle" ); -- 2.39.5