diff options
Diffstat (limited to 'remote/marionette/chrome')
-rw-r--r-- | remote/marionette/chrome/reftest.xhtml | 8 | ||||
-rw-r--r-- | remote/marionette/chrome/test.xhtml | 59 | ||||
-rw-r--r-- | remote/marionette/chrome/test2.xhtml | 36 | ||||
-rw-r--r-- | remote/marionette/chrome/test_dialog.dtd | 7 | ||||
-rw-r--r-- | remote/marionette/chrome/test_dialog.properties | 7 | ||||
-rw-r--r-- | remote/marionette/chrome/test_dialog.xhtml | 38 | ||||
-rw-r--r-- | remote/marionette/chrome/test_menupopup.xhtml | 34 | ||||
-rw-r--r-- | remote/marionette/chrome/test_nested_iframe.xhtml | 8 | ||||
-rw-r--r-- | remote/marionette/chrome/test_no_xul.xhtml | 58 |
9 files changed, 255 insertions, 0 deletions
diff --git a/remote/marionette/chrome/reftest.xhtml b/remote/marionette/chrome/reftest.xhtml new file mode 100644 index 0000000000..ec4145832d --- /dev/null +++ b/remote/marionette/chrome/reftest.xhtml @@ -0,0 +1,8 @@ +<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..1a94c69617 --- /dev/null +++ b/remote/marionette/chrome/test.xhtml @@ -0,0 +1,59 @@ +<?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" + xmlns:html="http://www.w3.org/1999/xhtml" +> + <html:link rel="stylesheet" href="chrome://global/skin/global.css" /> + + <dialog id="dia"> + <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..17d528c800 --- /dev/null +++ b/remote/marionette/chrome/test2.xhtml @@ -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 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..0bb0140115 --- /dev/null +++ b/remote/marionette/chrome/test_dialog.xhtml @@ -0,0 +1,38 @@ +<?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; ]> + +<window + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + title="&testDialog.title;" +> + <html:link rel="stylesheet" href="chrome://global/skin/global.css" /> + + <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..f9908072e8 --- /dev/null +++ b/remote/marionette/chrome/test_menupopup.xhtml @@ -0,0 +1,34 @@ +<?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="test-window" + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" +> + <html:link rel="stylesheet" href="chrome://global/skin/global.css" /> + + <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..5c45fa54c9 --- /dev/null +++ b/remote/marionette/chrome/test_nested_iframe.xhtml @@ -0,0 +1,8 @@ +<?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..48ef900226 --- /dev/null +++ b/remote/marionette/chrome/test_no_xul.xhtml @@ -0,0 +1,58 @@ +<?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. --> + +<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" +> + <link rel="stylesheet" href="chrome://global/skin/global.css" /> + + <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> |