summaryrefslogtreecommitdiffstats
path: root/dom/tests/mochitest/chrome/focus_window2.xhtml
blob: 63f973b1dc67ebe2e049323a66e0784250004bc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>

<window id="other-document"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>

<script>
<![CDATA[

function focused()
{
  if (window.arguments)
    setTimeout(() => window.arguments[0](window, window.arguments[1]), 0);
}

SimpleTest.waitForFocus(focused);

]]>
</script>

<button id="other" label="OK"/>
<input xmlns="http://www.w3.org/1999/xhtml" id="other-input" value="test"/>

</window>