diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2013-10-22 22:47:34 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2013-10-22 22:47:34 -0400 |
commit | 469150a27e90dcf523a30211a9e8667a64718b81 (patch) | |
tree | f065a4d2bda56f656abd4b708ffa3902e5765637 /test/unit/event.js | |
parent | bba8366af48bd2c80c96e7a0f58b3e16fd736125 (diff) | |
download | jquery-469150a27e90dcf523a30211a9e8667a64718b81.tar.gz jquery-469150a27e90dcf523a30211a9e8667a64718b81.zip |
Revert "Fix #14180. Allow cross-frame use of focusin/out. Close gh-1369."
This reverts commit bba8366af48bd2c80c96e7a0f58b3e16fd736125.
Because cross-frame focus sucks.
Diffstat (limited to 'test/unit/event.js')
-rw-r--r-- | test/unit/event.js | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/test/unit/event.js b/test/unit/event.js index 1310e050a..d81551da9 100644 --- a/test/unit/event.js +++ b/test/unit/event.js @@ -2507,33 +2507,6 @@ test("fixHooks extensions", function() { jQuery.event.fixHooks.click = saved; }); -testIframeWithCallback( "focusin from an iframe", "event/focusinCrossFrame.html", function( frameDoc ) { - expect(1); - - var input = jQuery( frameDoc ).find( "#frame-input" ); - - // Create a focusin handler on the parent; shouldn't affect the iframe's fate - jQuery ( "body" ).on( "focusin.iframeTest", function() { - ok( false, "fired a focusin event in the parent document" ); - }); - - input.on( "focusin", function() { - ok( true, "fired a focusin event in the iframe" ); - }); - - // Avoid a native event; Chrome can't force focus to another frame - input.trigger( "focusin" ); - - // Must manually remove handler to avoid leaks in our data store - input.remove(); - - // Be sure it was removed; nothing should happen - input.trigger( "focusin" ); - - // Remove body handler manually since it's outside the fixture - jQuery( "body" ).off( "focusin.iframeTest" ); -}); - testIframeWithCallback( "jQuery.ready promise", "event/promiseReady.html", function( isOk ) { expect(1); ok( isOk, "$.when( $.ready ) works" ); |