summaryrefslogtreecommitdiffstats
path: root/testing/marionette/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'testing/marionette/chrome')
-rw-r--r--testing/marionette/chrome/test.xul25
-rw-r--r--testing/marionette/chrome/test2.xul19
-rw-r--r--testing/marionette/chrome/test_anonymous_content.xul37
-rw-r--r--testing/marionette/chrome/test_dialog.dtd7
-rw-r--r--testing/marionette/chrome/test_dialog.properties7
-rw-r--r--testing/marionette/chrome/test_dialog.xul36
-rw-r--r--testing/marionette/chrome/test_nested_iframe.xul9
7 files changed, 140 insertions, 0 deletions
diff --git a/testing/marionette/chrome/test.xul b/testing/marionette/chrome/test.xul
new file mode 100644
index 000000000..2baa28e5f
--- /dev/null
+++ b/testing/marionette/chrome/test.xul
@@ -0,0 +1,25 @@
+<?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 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">
+ <checkbox id="testBox" label="box" />
+ <textbox id="textInput" size="6" value="test" label="input" />
+ <textbox id="textInput2" size="6" value="test" label="input" />
+ <textbox id="textInput3" class="asdf" size="6" value="test" label="input" />
+ </vbox>
+
+ <iframe id="iframe" name="iframename" src="chrome://marionette/content/test2.xul"/>
+ <iframe id="iframe" name="iframename" src="chrome://marionette/content/test_nested_iframe.xul"/>
+ <hbox id="testXulBox"/>
+ <browser id='aBrowser' src="chrome://marionette/content/test2.xul"/>
+ </dialog>
+</window>
diff --git a/testing/marionette/chrome/test2.xul b/testing/marionette/chrome/test2.xul
new file mode 100644
index 000000000..d450e0305
--- /dev/null
+++ b/testing/marionette/chrome/test2.xul
@@ -0,0 +1,19 @@
+<?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 [
+]>
+
+<dialog id="dia"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+
+ <vbox id="things">
+ <checkbox id="testBox" label="box" />
+ <textbox id="textInput" size="6" value="test" label="input" />
+ <textbox id="textInput2" size="6" value="test" label="input" />
+ <textbox id="textInput3" class="asdf" size="6" value="test" label="input" />
+ </vbox>
+
+</dialog>
diff --git a/testing/marionette/chrome/test_anonymous_content.xul b/testing/marionette/chrome/test_anonymous_content.xul
new file mode 100644
index 000000000..49f9eff29
--- /dev/null
+++ b/testing/marionette/chrome/test_anonymous_content.xul
@@ -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 dialog [
+]>
+
+<dialog id="testDialogAnonymousNode"
+ buttons="accept, cancel"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+
+ <bindings id="testBindings" xmlns="http://www.mozilla.org/xbl"
+ xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+ <binding id="framebox">
+ <content orient="vertical" mousethrough="never">
+ <xul:browser anonid="content" id="browser" flex="1"
+ context="contentAreaContextMenu"
+ src="test.xul"
+ type="content"/>
+ </content>
+ </binding>
+
+ <binding id="iframebox">
+ <content>
+ <xul:box>
+ <xul:iframe anonid="iframe" src="chrome://marionette/content/test.xul"></xul:iframe>
+ </xul:box>
+ </content>
+ </binding>
+ </bindings>
+
+ <hbox id="testAnonymousContentBox"/>
+ <hbox id="container" style="-moz-binding: url('#testBindings');"/>
+ <hbox id="container2" style="-moz-binding: url('#iframebox');"/>
+
+</dialog>
diff --git a/testing/marionette/chrome/test_dialog.dtd b/testing/marionette/chrome/test_dialog.dtd
new file mode 100644
index 000000000..414cb0ee8
--- /dev/null
+++ b/testing/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/testing/marionette/chrome/test_dialog.properties b/testing/marionette/chrome/test_dialog.properties
new file mode 100644
index 000000000..ade7b6bde
--- /dev/null
+++ b/testing/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/testing/marionette/chrome/test_dialog.xul b/testing/marionette/chrome/test_dialog.xul
new file mode 100644
index 000000000..0d4816b97
--- /dev/null
+++ b/testing/marionette/chrome/test_dialog.xul
@@ -0,0 +1,36 @@
+<?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://marionette/content/test_dialog.dtd" >
+%dialogDTD;
+]>
+
+<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
+
+
+<dialog id="testDialog"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ title="&testDialog.title;"
+ 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>
+ <textbox id="text-box" flex="1" />
+ </hbox>
+ </vbox>
+
+</dialog>
diff --git a/testing/marionette/chrome/test_nested_iframe.xul b/testing/marionette/chrome/test_nested_iframe.xul
new file mode 100644
index 000000000..0bec83cbe
--- /dev/null
+++ b/testing/marionette/chrome/test_nested_iframe.xul
@@ -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.xul"/>