summaryrefslogtreecommitdiffstats
path: root/dom/tests/mochitest/chrome/focus_window2.xul
diff options
context:
space:
mode:
Diffstat (limited to 'dom/tests/mochitest/chrome/focus_window2.xul')
-rw-r--r--dom/tests/mochitest/chrome/focus_window2.xul27
1 files changed, 27 insertions, 0 deletions
diff --git a/dom/tests/mochitest/chrome/focus_window2.xul b/dom/tests/mochitest/chrome/focus_window2.xul
new file mode 100644
index 000000000..1e67343d9
--- /dev/null
+++ b/dom/tests/mochitest/chrome/focus_window2.xul
@@ -0,0 +1,27 @@
+<?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 type="application/javascript"
+ 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"/>
+<textbox id="other-textbox" value="test"/>
+
+</window>