Bug 1150207 - Convert a focus() call to use SpecialPowers to avoid out-of-order focusing behaviour. r=mwargers

This commit is contained in:
Kartikaya Gupta 2015-04-02 06:58:18 -04:00
parent e2cf5f6206
commit 48185dd8d3

View File

@ -72,7 +72,7 @@
is(plugin1.getFocusEventCount(), expectedEventCount, "Focus event count should be " + expectedEventCount);
// Focus the window.
window.focus();
SpecialPowers.focus(window);
is(plugin1.getFocusState(), true, "(3) Plugin should still have focus.");
is(plugin1.getFocusEventCount(), expectedEventCount, "Focus event count should be " + expectedEventCount);