From cc5e8e3866e5dac7eacda5927679573c8da79492 Mon Sep 17 00:00:00 2001 From: Oleg Date: Thu, 12 Jan 2012 19:40:41 -0500 Subject: Fix #10006: Allow .show() to work on detached elements. --- test/unit/effects.js | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++ test/unit/queue.js | 1 + 2 files changed, 55 insertions(+) (limited to 'test') diff --git a/test/unit/effects.js b/test/unit/effects.js index 1728cf8f9..49fa33d42 100644 --- a/test/unit/effects.js +++ b/test/unit/effects.js @@ -188,6 +188,60 @@ test("show() resolves correct default display #8099", function() { }); +test( "show() resolves correct default display, detached nodes (#10006)", function(){ + // Tests originally contributed by Orkel in + // https://github.com/jquery/jquery/pull/458 + expect( 11 ); + + var div, span; + + div = jQuery("