summaryrefslogtreecommitdiffstats
path: root/remote/marionette/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'remote/marionette/chrome')
-rw-r--r--remote/marionette/chrome/reftest.xhtml6
-rw-r--r--remote/marionette/chrome/test.xhtml27
-rw-r--r--remote/marionette/chrome/test2.xhtml20
-rw-r--r--remote/marionette/chrome/test_dialog.dtd7
-rw-r--r--remote/marionette/chrome/test_dialog.properties7
-rw-r--r--remote/marionette/chrome/test_dialog.xhtml37
-rw-r--r--remote/marionette/chrome/test_menupopup.xhtml30
-rw-r--r--remote/marionette/chrome/test_nested_iframe.xhtml9
-rw-r--r--remote/marionette/chrome/test_no_xul.xhtml31
9 files changed, 174 insertions, 0 deletions
diff --git a/remote/marionette/chrome/reftest.xhtml b/remote/marionette/chrome/reftest.xhtml
new file mode 100644
index 0000000000..7135ce2862
--- /dev/null
+++ b/remote/marionette/chrome/reftest.xhtml
@@ -0,0 +1,6 @@
+<window id="reftest"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ hidechrome="true"
+ style="background-color:white; overflow:hidden">
+ <script src="reftest-content.js"></script>
+</window>
diff --git a/remote/marionette/chrome/test.xhtml b/remote/marionette/chrome/test.xhtml
new file mode 100644
index 0000000000..1ab4b5d263
--- /dev/null
+++ b/remote/marionette/chrome/test.xhtml
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+ - License, v. 2.0. If a copy of the MPL was not distributed with this
+ - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+
+<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
+
+<!DOCTYPE window [
+]>
+<window id="winTest" title="Title Test" windowtype="Test Type"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+ <dialog id="dia"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+
+ <vbox id="things">
+ <input xmlns="http://www.w3.org/1999/xhtml" id="textInput" size="6" value="test" label="input" />
+ <input xmlns="http://www.w3.org/1999/xhtml" id="textInput2" size="6" value="test" label="input" />
+ <input xmlns="http://www.w3.org/1999/xhtml" id="textInput3" class="asdf" size="6" value="test" label="input" />
+ <checkbox id="testBox" label="box" />
+ </vbox>
+
+ <iframe id="iframe" name="iframename" src="chrome://remote/content/marionette/test2.xhtml"/>
+ <iframe id="iframe" name="iframename" src="chrome://remote/content/marionette/test_nested_iframe.xhtml"/>
+ <hbox id="testXulBox"/>
+ <browser id="aBrowser" src="chrome://remote/content/marionette/test2.xhtml"/>
+ </dialog>
+</window>
diff --git a/remote/marionette/chrome/test2.xhtml b/remote/marionette/chrome/test2.xhtml
new file mode 100644
index 0000000000..d6b72dab45
--- /dev/null
+++ b/remote/marionette/chrome/test2.xhtml
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+ - License, v. 2.0. If a copy of the MPL was not distributed with this
+ - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+
+<!DOCTYPE window [
+]>
+
+<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+<dialog id="dia">
+
+ <vbox id="things">
+ <checkbox id="testBox" label="box" />
+ <input xmlns="http://www.w3.org/1999/xhtml" id="textInput" size="6" value="test" label="input" />
+ <input xmlns="http://www.w3.org/1999/xhtml" id="textInput2" size="6" value="test" label="input" />
+ <input xmlns="http://www.w3.org/1999/xhtml" id="textInput3" class="asdf" size="6" value="test" label="input" />
+ </vbox>
+
+</dialog>
+</window>
diff --git a/remote/marionette/chrome/test_dialog.dtd b/remote/marionette/chrome/test_dialog.dtd
new file mode 100644
index 0000000000..414cb0ee81
--- /dev/null
+++ b/remote/marionette/chrome/test_dialog.dtd
@@ -0,0 +1,7 @@
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+ - License, v. 2.0. If a copy of the MPL was not distributed with this
+ - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+
+<!ENTITY testDialog.title "Test Dialog">
+
+<!ENTITY settings.label "Settings">
diff --git a/remote/marionette/chrome/test_dialog.properties b/remote/marionette/chrome/test_dialog.properties
new file mode 100644
index 0000000000..ade7b6bde3
--- /dev/null
+++ b/remote/marionette/chrome/test_dialog.properties
@@ -0,0 +1,7 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+testDialog.title=Test Dialog
+
+settings.label=Settings
diff --git a/remote/marionette/chrome/test_dialog.xhtml b/remote/marionette/chrome/test_dialog.xhtml
new file mode 100644
index 0000000000..e1da10dbe9
--- /dev/null
+++ b/remote/marionette/chrome/test_dialog.xhtml
@@ -0,0 +1,37 @@
+<?xml version="1.0"?>
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+ - License, v. 2.0. If a copy of the MPL was not distributed with this
+ - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+
+<!DOCTYPE testdialog [
+<!ENTITY % dialogDTD SYSTEM "chrome://remote/content/marionette/test_dialog.dtd" >
+%dialogDTD;
+]>
+
+<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
+
+
+<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ title="&testDialog.title;">
+<dialog id="testDialog"
+ buttons="accept,cancel">
+
+ <vbox flex="1" style="min-width: 300px; min-height: 500px;">
+ <label>&settings.label;</label>
+ <separator class="thin"/>
+ <richlistbox id="test-list" flex="1">
+ <richlistitem id="item-choose" orient="horizontal" selected="true">
+ <label id="choose-label" value="First Entry" flex="1"/>
+ <button id="choose-button" oncommand="" label="Choose..."/>
+ </richlistitem>
+ </richlistbox>
+ <separator class="thin"/>
+ <checkbox id="check-box" label="Test Mode 2" />
+ <hbox align="center">
+ <label id="text-box-label" control="text-box">Name:</label>
+ <input xmlns="http://www.w3.org/1999/xhtml" id="text-box" style="-moz-box-flex: 1;" />
+ </hbox>
+ </vbox>
+
+</dialog>
+</window>
diff --git a/remote/marionette/chrome/test_menupopup.xhtml b/remote/marionette/chrome/test_menupopup.xhtml
new file mode 100644
index 0000000000..5d8902f011
--- /dev/null
+++ b/remote/marionette/chrome/test_menupopup.xhtml
@@ -0,0 +1,30 @@
+<?xml version="1.0"?>
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+ - License, v. 2.0. If a copy of the MPL was not distributed with this
+ - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+
+<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
+
+<!DOCTYPE window [
+]>
+<window id="test-window" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+ <popupset id="options-popupset">
+ <menupopup id="options-menupopup" position="before_end">
+ <menuitem id="option-enabled"
+ type="checkbox"
+ label="enabled"/>
+ <menuitem id="option-hidden"
+ type="checkbox"
+ label="hidden"
+ hidden="true"/>
+ <menuitem id="option-disabled"
+ type="checkbox"
+ label="disabled"
+ disabled="true"/>
+ </menupopup>
+ </popupset>
+ <hbox align="center" style="height: 300px;">
+ <button id="options-button"
+ popup="options-menupopup" label="button"/>
+ </hbox>
+</window>
diff --git a/remote/marionette/chrome/test_nested_iframe.xhtml b/remote/marionette/chrome/test_nested_iframe.xhtml
new file mode 100644
index 0000000000..1d0edcc65b
--- /dev/null
+++ b/remote/marionette/chrome/test_nested_iframe.xhtml
@@ -0,0 +1,9 @@
+<?xml version="1.0"?>
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+ - License, v. 2.0. If a copy of the MPL was not distributed with this
+ - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+
+<!DOCTYPE window [
+]>
+
+ <iframe id="iframe" name="iframename" src="test2.xhtml"/>
diff --git a/remote/marionette/chrome/test_no_xul.xhtml b/remote/marionette/chrome/test_no_xul.xhtml
new file mode 100644
index 0000000000..195d138744
--- /dev/null
+++ b/remote/marionette/chrome/test_no_xul.xhtml
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+ - License, v. 2.0. If a copy of the MPL was not distributed with this
+ - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+
+<!-- Test file for a non XUL window by using a XHTML document instead. -->
+
+<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
+
+<html id="winTest"
+ xmlns:html="http://www.w3.org/1999/xhtml"
+ xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ xmlns="http://www.w3.org/1999/xhtml">
+
+ <head>
+ <title>Title Test</title>
+ </head>
+
+ <body xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+ <vbox id="things">
+ <input xmlns="http://www.w3.org/1999/xhtml" id="textInput" size="6" value="test" label="input" />
+ <input xmlns="http://www.w3.org/1999/xhtml" id="textInput2" size="6" value="test" label="input" />
+ <input xmlns="http://www.w3.org/1999/xhtml" id="textInput3" class="asdf" size="6" value="test" label="input" />
+ <input type="checkbox" id="testBox" label="box" />
+ </vbox>
+
+ <html:iframe id="iframe" name="iframename" src="chrome://remote/content/marionette/test2.xhtml" />
+ <html:iframe id="iframe" name="iframename" src="chrome://remote/content/marionette/test_nested_iframe.xhtml" />
+ </body>
+
+</html>