diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2013-01-02 21:25:49 -0500 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2013-01-03 20:55:59 -0500 |
commit | cef3450228f53a1facfbed2be77050e61ee6a178 (patch) | |
tree | b86021346184a2e6ea6cf2d872ff3702b7a7cf99 /test | |
parent | 4ee1b03c54ff8c8f5cfd983aeaa13bbba212ffe3 (diff) | |
download | jquery-cef3450228f53a1facfbed2be77050e61ee6a178.tar.gz jquery-cef3450228f53a1facfbed2be77050e61ee6a178.zip |
Remove noCloneEvent detects and white-box unit test.
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/manipulation.js | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index d9b014187..25ca9cd5b 100644 --- a/test/unit/manipulation.js +++ b/test/unit/manipulation.js @@ -626,48 +626,6 @@ test( "replaceWith([]) where replacing element requires cloning", function () { "Make sure replacing elements were cloned" ); }); - -test( "append the same fragment with events (Bug #6997, 5566)", function() { - - 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 - // native event handlers on the original object don't get disturbed when they are - // modified on the clone - if ( doExtra ) { - element = jQuery("div:first").click(function() { - ok( true, "Event exists on original after being unbound on clone" ); - jQuery( this ).unbind("click"); - }); - clone = element.clone( true ).unbind("click"); - clone[ 0 ].fireEvent("onclick"); - element[ 0 ].fireEvent("onclick"); - - // manually clean up detached elements - clone.remove(); - } - - element = jQuery("<a class='test6997'></a>").click(function() { - ok( true, "Append second element events work" ); - }); - - jQuery("#listWithTabIndex li").append( element ) - .find("a.test6997").eq( 1 ).click(); - - element = jQuery("<li class='test6997'></li>").click(function() { - ok( true, "Before second element events work" ); - start(); - }); - - jQuery("#listWithTabIndex li").before( element ); - jQuery("#listWithTabIndex li.test6997").eq( 1 ).click(); -}); - test( "append HTML5 sectioning elements (Bug #6485)", function() { expect( 2 ); |