diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2011-11-13 21:03:36 -0500 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2011-11-13 21:03:36 -0500 |
commit | d2815ed750bc0dce51f065fde039312becfdb3ac (patch) | |
tree | bb40658869b7ac0cafbe9161bfd4791831c4f279 /test/unit/event.js | |
parent | 683be093a675d2b8b65d5a33c3416cbe99a71967 (diff) | |
download | jquery-d2815ed750bc0dce51f065fde039312becfdb3ac.tar.gz jquery-d2815ed750bc0dce51f065fde039312becfdb3ac.zip |
Disable DOM focusin test since it can't really work in the swarm.
Diffstat (limited to 'test/unit/event.js')
-rw-r--r-- | test/unit/event.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/unit/event.js b/test/unit/event.js index d33ba40d6..8b3209733 100644 --- a/test/unit/event.js +++ b/test/unit/event.js @@ -2319,7 +2319,7 @@ test("window resize", function() { }); test("focusin bubbles", function() { - expect(5); + expect(2); var input = jQuery( "<input type='text' />" ).prependTo( "body" ), order = 0; @@ -2332,13 +2332,14 @@ test("focusin bubbles", function() { equal( 0, order++, "focusin on the element first" ); }); +// Removed since DOM focus is unreliable on test swarm // DOM focus method - input[0].focus(); +// input[0].focus(); // To make the next focus test work, we need to take focus off the input. // This will fire another focusin event, so set order to reflect that. - order = 1; - jQuery("#text1")[0].focus(); +// order = 1; +// jQuery("#text1")[0].focus(); // jQuery trigger, which calls DOM focus order = 0; |