widget/tests/window_bug593307_offscreen.xul

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/widget/tests/window_bug593307_offscreen.xul	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,34 @@
     1.4 +<?xml version="1.0"?>
     1.5 +<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
     1.6 +<window title="Mozilla Bug 593307"
     1.7 +  width="100" height="100"
     1.8 +  onload="onLoad();"
     1.9 +  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
    1.10 +
    1.11 +  <script type="application/javascript"
    1.12 +          src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js" />
    1.13 +
    1.14 +<body xmlns="http://www.w3.org/1999/xhtml" id="body">
    1.15 +</body>
    1.16 +
    1.17 +<script class="testbody" type="application/javascript">
    1.18 +<![CDATA[
    1.19 +
    1.20 +var centerscreen = null;
    1.21 +var SimpleTest = window.arguments[0];
    1.22 +var finish = window.arguments[1];
    1.23 +
    1.24 +function onLoad()
    1.25 +{
    1.26 +  centerscreen = window.openDialog('window_bug593307_centerscreen.xul','', 'chrome,centerscreen,dependent,dialog=no');
    1.27 +}
    1.28 +
    1.29 +function finished() {
    1.30 +  centerscreen.close();
    1.31 +  finish();
    1.32 +}
    1.33 +
    1.34 +]]>
    1.35 +</script>
    1.36 +
    1.37 +</window>

mercurial