mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
21 lines
721 B
JavaScript
21 lines
721 B
JavaScript
|
// ----------------------------------------------------------------------------
|
||
|
// Test whether an InstallTrigger.enabled is working
|
||
|
function test() {
|
||
|
waitForExplicitFinish();
|
||
|
|
||
|
gBrowser.selectedTab = gBrowser.addTab();
|
||
|
gBrowser.selectedBrowser.addEventListener("load", function() {
|
||
|
gBrowser.selectedBrowser.removeEventListener("load", arguments.callee, true);
|
||
|
// Allow the in-page load handler to run first
|
||
|
executeSoon(page_loaded);
|
||
|
}, true);
|
||
|
gBrowser.loadURI(TESTROOT + "enabled.html");
|
||
|
}
|
||
|
|
||
|
function page_loaded() {
|
||
|
var doc = gBrowser.contentDocument;
|
||
|
is(doc.getElementById("enabled").textContent, "true", "installTrigger should have been enabled");
|
||
|
gBrowser.removeCurrentTab();
|
||
|
finish();
|
||
|
}
|