Commit d2815ed7 authored by Dave Methvin's avatar Dave Methvin

Disable DOM focusin test since it can't really work in the swarm.

parent 683be093
...@@ -2319,7 +2319,7 @@ test("window resize", function() { ...@@ -2319,7 +2319,7 @@ test("window resize", function() {
}); });
test("focusin bubbles", function() { test("focusin bubbles", function() {
expect(5); expect(2);
var input = jQuery( "<input type='text' />" ).prependTo( "body" ), var input = jQuery( "<input type='text' />" ).prependTo( "body" ),
order = 0; order = 0;
...@@ -2332,13 +2332,14 @@ test("focusin bubbles", function() { ...@@ -2332,13 +2332,14 @@ test("focusin bubbles", function() {
equal( 0, order++, "focusin on the element first" ); equal( 0, order++, "focusin on the element first" );
}); });
// Removed since DOM focus is unreliable on test swarm
// DOM focus method // DOM focus method
input[0].focus(); // input[0].focus();
// To make the next focus test work, we need to take focus off the input. // 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. // This will fire another focusin event, so set order to reflect that.
order = 1; // order = 1;
jQuery("#text1")[0].focus(); // jQuery("#text1")[0].focus();
// jQuery trigger, which calls DOM focus // jQuery trigger, which calls DOM focus
order = 0; order = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment