Commit 44370027 authored by Dave Methvin's avatar Dave Methvin

Radical idea: Calculate `expect()` value before fn call. 💜

parent 551c2c9f
...@@ -621,11 +621,11 @@ test( "replaceWith([]) where replacing element requires cloning", function () { ...@@ -621,11 +621,11 @@ test( "replaceWith([]) where replacing element requires cloning", function () {
test( "append the same fragment with events (Bug #6997, 5566)", function() { test( "append the same fragment with events (Bug #6997, 5566)", function() {
expect( 2 + ( doExtra ? 1 : 0 ) );
var element, clone, var element, clone,
doExtra = !jQuery.support.noCloneEvent && document["fireEvent"]; doExtra = !jQuery.support.noCloneEvent && document["fireEvent"];
expect( 2 + ( doExtra ? 1 : 0 ) );
stop(); stop();
// This patch modified the way that cloning occurs in IE; we need to make sure that // This patch modified the way that cloning occurs in IE; we need to make sure that
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment