Skip to content

Commit 4437002

Browse files
committed
Radical idea: Calculate expect() value before fn call. 💜
1 parent 551c2c9 commit 4437002

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit/manipulation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,11 +621,11 @@ test( "replaceWith([]) where replacing element requires cloning", function () {
621621

622622
test( "append the same fragment with events (Bug #6997, 5566)", function() {
623623

624-
expect( 2 + ( doExtra ? 1 : 0 ) );
625-
626624
var element, clone,
627625
doExtra = !jQuery.support.noCloneEvent && document["fireEvent"];
628626

627+
expect( 2 + ( doExtra ? 1 : 0 ) );
628+
629629
stop();
630630

631631
// This patch modified the way that cloning occurs in IE; we need to make sure that

0 commit comments

Comments
 (0)