From 4437002771f6ab70fba6e2e9bd9cf60957e70871 Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Tue, 4 Dec 2012 22:14:08 -0500 Subject: [PATCH] Radical idea: Calculate `expect()` value before fn call. :purple_heart: --- test/unit/manipulation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index 7e48fb68e..70f5ab9e7 100644 --- a/test/unit/manipulation.js +++ b/test/unit/manipulation.js @@ -621,11 +621,11 @@ test( "replaceWith([]) where replacing element requires cloning", function () { test( "append the same fragment with events (Bug #6997, 5566)", function() { - expect( 2 + ( doExtra ? 1 : 0 ) ); - var element, clone, doExtra = !jQuery.support.noCloneEvent && document["fireEvent"]; + expect( 2 + ( doExtra ? 1 : 0 ) ); + stop(); // This patch modified the way that cloning occurs in IE; we need to make sure that -- 2.39.5