Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
<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>