mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 21:00:50 +00:00
Bug 736905. (Av1) test_ui_modalprompt.html needs to check "prompts.tab_modal.enabled" preference. r=surkov.alexander.
This commit is contained in:
parent
de07cf5507
commit
7c3e3c5d25
@ -22,6 +22,14 @@
|
||||
src="../browser.js"></script>
|
||||
|
||||
<script type="application/javascript">
|
||||
function hasTabModalPrompts() {
|
||||
try {
|
||||
return SpecialPowers.getBoolPref("prompts.tab_modal.enabled");
|
||||
} catch (ex) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function showAlert()
|
||||
{
|
||||
this.eventSeq = [
|
||||
@ -72,8 +80,12 @@
|
||||
gQueue.invoke(); // will call SimpleTest.finish()
|
||||
}
|
||||
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
openBrowserWindow(doTests);
|
||||
if (!hasTabModalPrompts()) {
|
||||
todo(false, "Test disabled when tab modal prompts are not enabled.");
|
||||
} else {
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
openBrowserWindow(doTests);
|
||||
}
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
Loading…
x
Reference in New Issue
Block a user