Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test gets skipped with pattern: os == 'android'
- Manifest: dom/tests/mochitest/chrome/chrome.toml
<?xml version="1.0"?>
<window title="Focus Tests"
onload="setTimeout(runTest, 0);"
<script>
if (navigator.platform.startsWith("Win")) {
SimpleTest.expectAssertions(0, 1);
}
SimpleTest.waitForExplicitFinish();
async function runTest() {
// Enable full tab focus model on mac.
await SpecialPowers.pushPrefEnv({ set: [["accessibility.tabfocus", 7]] });
window.openDialog("focus_dialog.xhtml", "_blank", "chrome,modal,noopener", window);
}
</script>
<p id="display">
</p>
<div id="content" style="display: none">
</div>
<pre id="test">
</pre>
</body>
</window>