Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test gets skipped with pattern: os == 'linux' OR os == 'android' OR headless
- Manifest: dom/tests/mochitest/keyhandling/chrome.toml
<?xml version="1.0"?>
<window title="Top-level window keyhandling tests"
onload="test();">
<script type="application/javascript">
<![CDATA[
SimpleTest.waitForExplicitFinish();
async function run_test(path) {
let win = window.browsingContext.topChromeWindow
.openDialog(path, "_blank", "width=500,height=500", window);
await SimpleTest.promiseFocus(win);
await win.startTest();
}
async function test() {
await run_test("test_input.html");
await run_test("test_textarea.html");
SimpleTest.finish();
}
]]>
</script>
<p id="display"></p>
<div id="content" style="display:none;"></div>
<pre id="test"></pre>
</body>
</window>