6 tab1 = gBrowser.addTab();
7 tab2 = gBrowser.addTab();
9 EventUtils.synthesizeMouse(
tab1, 2, 2, {});
15 isnot(document.activeElement,
tab1,
"mouse on tab not activeElement");
17 EventUtils.synthesizeMouse(
tab1, 2, 2, {});
23 isnot(document.activeElement,
tab1,
"mouse on tab again activeElement");
25 document.getElementById(
"searchbar").focus();
26 EventUtils.synthesizeKey(
"VK_TAB", { });
27 is(document.activeElement,
tab1,
"tab key to tab activeElement");
29 EventUtils.synthesizeMouse(
tab1, 2, 2, {});
35 is(document.activeElement,
tab1,
"mouse on tab while focused still activeElement");
37 EventUtils.synthesizeMouse(
tab2, 2, 2, {});
45 is(document.activeElement,
tab2,
"mouse on another tab while focused still activeElement");
48 EventUtils.synthesizeMouse(
tab2, 2, 2, {button: 1, type:
"mousedown"});
54 isnot(document.activeElement,
tab2,
"tab not focused via middle click");
56 gBrowser.removeTab(
tab1);
57 gBrowser.removeTab(
tab2);
aWindow setTimeout(function(){_this.restoreHistory(aWindow, aTabs, aTabData, aIdMap);}, 0)