Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test gets skipped with pattern: os == 'android'
- Manifest: toolkit/content/tests/chrome/chrome.toml
<?xml version="1.0"?>
<window title="Menu Button Popup Tests"
onload="setTimeout(runTest, 0);"
<script>
SimpleTest.waitForExplicitFinish();
async function runTest()
{
// This test exercises non-native menu code. So disable native context menus for this test.
// If we ever get to a point where we don't use any non-native menus on macOS any more, we can
// disable this test on macOS.
await SpecialPowers.pushPrefEnv({ set: [["widget.macos.native-context-menus", false]] });
window.open("window_popup_button.xhtml", "_blank", "width=700,height=800");
}
</script>
<p id="display">
</p>
<div id="content" style="display: none">
</div>
<pre id="test">
</pre>
</body>
</window>