Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: dom/base/test/fullscreen/chrome.toml
<?xml version="1.0"?>
<!--
Test for fullscreen sizemode in chrome
-->
sizemode="fullscreen">
<script type="application/javascript"
<script>
SimpleTest.waitForExplicitFinish();
let newwindow = window.browsingContext.topChromeWindow.openDialog("fullscreen.xhtml", "_blank","chrome,resizable=yes", window);
function done()
{
// because we are cancelling the fullscreen event, it
// takes a bit for the fullScreen property to be set
setTimeout(function() { this.complete(); }, 0);
}
function complete()
{
ok(newwindow.fullScreen, "window.fullScreen is true.");
newwindow.close();
SimpleTest.finish();
}
</script>
</window>