dom/tests/mochitest/chrome/focus_window2.xul

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/tests/mochitest/chrome/focus_window2.xul	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,27 @@
     1.4 +<?xml version="1.0"?>
     1.5 +<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
     1.6 +
     1.7 +<window id="other-document"
     1.8 +        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
     1.9 +
    1.10 +<script type="application/javascript"
    1.11 +        src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
    1.12 +
    1.13 +<script>
    1.14 +<![CDATA[
    1.15 +
    1.16 +function focused()
    1.17 +{
    1.18 +  if (window.arguments)
    1.19 +    setTimeout(function () window.arguments[0](window, window.arguments[1]), 0);
    1.20 +}
    1.21 +
    1.22 +SimpleTest.waitForFocus(focused);
    1.23 +
    1.24 +]]>
    1.25 +</script>
    1.26 +
    1.27 +<button id="other" label="OK"/>
    1.28 +<textbox id="other-textbox" value="test"/>
    1.29 +
    1.30 +</window>

mercurial