mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 906839 - test fixes. r=markh
This commit is contained in:
parent
545175ac54
commit
3204bb6a45
@ -113,15 +113,17 @@ var tests = {
|
|||||||
port.postMessage({topic: "test-flyout-open"});
|
port.postMessage({topic: "test-flyout-open"});
|
||||||
break;
|
break;
|
||||||
case "got-flyout-visibility":
|
case "got-flyout-visibility":
|
||||||
|
if (e.data.result != "shown")
|
||||||
|
return;
|
||||||
let iframe = panel.firstChild;
|
let iframe = panel.firstChild;
|
||||||
iframe.contentDocument.addEventListener("SocialTest-DoneCloseSelf", function _doneHandler() {
|
iframe.contentDocument.addEventListener("SocialTest-DoneCloseSelf", function _doneHandler() {
|
||||||
iframe.contentDocument.removeEventListener("SocialTest-DoneCloseSelf", _doneHandler, false);
|
iframe.contentDocument.removeEventListener("SocialTest-DoneCloseSelf", _doneHandler, false);
|
||||||
|
port.close();
|
||||||
is(panel.state, "closed", "flyout should have closed itself");
|
is(panel.state, "closed", "flyout should have closed itself");
|
||||||
Services.prefs.setBoolPref(ALLOW_SCRIPTS_TO_CLOSE_PREF, oldAllowScriptsToClose);
|
Services.prefs.setBoolPref(ALLOW_SCRIPTS_TO_CLOSE_PREF, oldAllowScriptsToClose);
|
||||||
next();
|
next();
|
||||||
}, false);
|
}, false);
|
||||||
is(panel.state, "open", "flyout should be open");
|
is(panel.state, "open", "flyout should be open");
|
||||||
port.close(); // so we don't get the -visibility message as it hides...
|
|
||||||
SocialFlyout.dispatchPanelEvent("socialTest-CloseSelf");
|
SocialFlyout.dispatchPanelEvent("socialTest-CloseSelf");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user