diff options
Diffstat (limited to 'editor/reftests/xul')
39 files changed, 625 insertions, 0 deletions
diff --git a/editor/reftests/xul/autocomplete-1.xul b/editor/reftests/xul/autocomplete-1.xul new file mode 100644 index 000000000..4ba8edb8c --- /dev/null +++ b/editor/reftests/xul/autocomplete-1.xul @@ -0,0 +1,14 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> + +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + title="Textbox tests"> + + <script type="text/javascript" src="platform.js"/> + + <!-- leading space in the value to ensure no pixels of t get clipped + in one rendering but not the other --> + <textbox type="autocomplete" value=" test"/> + +</window> diff --git a/editor/reftests/xul/autocomplete-ref.xul b/editor/reftests/xul/autocomplete-ref.xul new file mode 100644 index 000000000..829948964 --- /dev/null +++ b/editor/reftests/xul/autocomplete-ref.xul @@ -0,0 +1,13 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> +<?xml-stylesheet href="input.css" type="text/css"?> + +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + title="Textbox tests"> + + <script type="text/javascript" src="platform.js"/> + + <html:input class="ac" value=" test"/> + +</window> diff --git a/editor/reftests/xul/empty-1.xul b/editor/reftests/xul/empty-1.xul new file mode 100644 index 000000000..cb0bd576b --- /dev/null +++ b/editor/reftests/xul/empty-1.xul @@ -0,0 +1,13 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> +<?xml-stylesheet href="placeholder-reset.css" type="text/css"?> + +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + title="Textbox tests"> + + <script type="text/javascript" src="platform.js"/> + + <textbox placeholder=" test"/> + +</window> diff --git a/editor/reftests/xul/empty-2.xul b/editor/reftests/xul/empty-2.xul new file mode 100644 index 000000000..e7f59fa6e --- /dev/null +++ b/editor/reftests/xul/empty-2.xul @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> + +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + title="Textbox tests"> + + <script type="text/javascript" src="platform.js"/> + + <textbox placeholder=" test" value="value"/> + +</window> diff --git a/editor/reftests/xul/empty-ref.xul b/editor/reftests/xul/empty-ref.xul new file mode 100644 index 000000000..6caf215ed --- /dev/null +++ b/editor/reftests/xul/empty-ref.xul @@ -0,0 +1,13 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> +<?xml-stylesheet href="input.css" type="text/css"?> + +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + title="Textbox tests"> + + <script type="text/javascript" src="platform.js"/> + + <html:input class="empty" value=" test"/> + +</window> diff --git a/editor/reftests/xul/emptyautocomplete-1.xul b/editor/reftests/xul/emptyautocomplete-1.xul new file mode 100644 index 000000000..ddbd50512 --- /dev/null +++ b/editor/reftests/xul/emptyautocomplete-1.xul @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> + +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + title="Textbox tests"> + + <script type="text/javascript" src="platform.js"/> + + <textbox type="autocomplete"/> + +</window> diff --git a/editor/reftests/xul/emptyautocomplete-ref.xul b/editor/reftests/xul/emptyautocomplete-ref.xul new file mode 100644 index 000000000..abe557fdb --- /dev/null +++ b/editor/reftests/xul/emptyautocomplete-ref.xul @@ -0,0 +1,13 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> +<?xml-stylesheet href="input.css" type="text/css"?> + +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + title="Textbox tests"> + + <script type="text/javascript" src="platform.js"/> + + <html:input class="ac"/> + +</window> diff --git a/editor/reftests/xul/emptymultiline-1.xul b/editor/reftests/xul/emptymultiline-1.xul new file mode 100644 index 000000000..dbe72be3d --- /dev/null +++ b/editor/reftests/xul/emptymultiline-1.xul @@ -0,0 +1,13 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> +<?xml-stylesheet href="input.css" type="text/css"?> + +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + title="Textbox tests"> + + <script type="text/javascript" src="platform.js"/> + + <textbox multiline="true"/> + +</window> diff --git a/editor/reftests/xul/emptymultiline-2.xul b/editor/reftests/xul/emptymultiline-2.xul new file mode 100644 index 000000000..c43d432ad --- /dev/null +++ b/editor/reftests/xul/emptymultiline-2.xul @@ -0,0 +1,13 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> +<?xml-stylesheet href="input.css" type="text/css"?> + +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + title="Textbox tests"> + + <script type="text/javascript" src="platform.js"/> + + <textbox multiline="true" rows="10"/> + +</window> diff --git a/editor/reftests/xul/emptymultiline-ref.xul b/editor/reftests/xul/emptymultiline-ref.xul new file mode 100644 index 000000000..ef79718dd --- /dev/null +++ b/editor/reftests/xul/emptymultiline-ref.xul @@ -0,0 +1,13 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> +<?xml-stylesheet href="input.css" type="text/css"?> + +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + title="Textbox tests"> + + <script type="text/javascript" src="platform.js"/> + + <html:textarea rows="10" style="resize: none;"/> + +</window> diff --git a/editor/reftests/xul/emptytextbox-1.xul b/editor/reftests/xul/emptytextbox-1.xul new file mode 100644 index 000000000..aba191a94 --- /dev/null +++ b/editor/reftests/xul/emptytextbox-1.xul @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> + +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + title="Textbox tests"> + + <script type="text/javascript" src="platform.js"/> + + <textbox/> + +</window> diff --git a/editor/reftests/xul/emptytextbox-2.xul b/editor/reftests/xul/emptytextbox-2.xul new file mode 100644 index 000000000..973e89882 --- /dev/null +++ b/editor/reftests/xul/emptytextbox-2.xul @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> + +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + title="Textbox tests"> + + <script type="text/javascript" src="platform.js"/> + + <textbox type="password"/> + +</window> diff --git a/editor/reftests/xul/emptytextbox-3.xul b/editor/reftests/xul/emptytextbox-3.xul new file mode 100644 index 000000000..a37ce6429 --- /dev/null +++ b/editor/reftests/xul/emptytextbox-3.xul @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> + +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + title="Textbox tests"> + + <script type="text/javascript" src="platform.js"/> + + <textbox type="number"/> + +</window> diff --git a/editor/reftests/xul/emptytextbox-4.xul b/editor/reftests/xul/emptytextbox-4.xul new file mode 100644 index 000000000..979cd118e --- /dev/null +++ b/editor/reftests/xul/emptytextbox-4.xul @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> + +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + title="Textbox tests"> + + <script type="text/javascript" src="platform.js"/> + + <textbox type="search"/> + +</window> diff --git a/editor/reftests/xul/emptytextbox-5.xul b/editor/reftests/xul/emptytextbox-5.xul new file mode 100644 index 000000000..6c8c27971 --- /dev/null +++ b/editor/reftests/xul/emptytextbox-5.xul @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> + +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + title="Textbox tests"> + + <script type="text/javascript" src="platform.js"/> + + <textbox type="timed"/> + +</window> diff --git a/editor/reftests/xul/emptytextbox-ref.xul b/editor/reftests/xul/emptytextbox-ref.xul new file mode 100644 index 000000000..58089ca6d --- /dev/null +++ b/editor/reftests/xul/emptytextbox-ref.xul @@ -0,0 +1,13 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> +<?xml-stylesheet href="input.css" type="text/css"?> + +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + title="Textbox tests"> + + <script type="text/javascript" src="platform.js"/> + + <html:input/> + +</window> diff --git a/editor/reftests/xul/input.css b/editor/reftests/xul/input.css new file mode 100644 index 000000000..2104b16d2 --- /dev/null +++ b/editor/reftests/xul/input.css @@ -0,0 +1,70 @@ +@namespace url('http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul'); +@namespace html url('http://www.w3.org/1999/xhtml'); + +#mac html|input, #mac html|textarea { + margin: 4px; + padding: 0 1px; +} + +#win html|input, #win html|textarea { + margin: 2px 4px; + padding: 2px 3px 3px; + padding-inline-start: 5px; +} + +#win html|input:-moz-system-metric(windows-default-theme) { + padding: 1px 2px 2px; + padding-inline-start: 4px; +} + +#linux html|input, #linux html|textarea { + margin: 2px 4px; + padding: 2px 5px 3px; +} + +textbox[multiline="true"], html|textarea { + border: none !important; + -moz-appearance: none !important; + background-color: white !important; + border-top-right-radius: 0; + border-bottom-left-radius: 0; +} + +html|input, html|textarea { + font: inherit; +} + +html|input.ac { + padding: 0 4px !important; +} + +html|input.empty { + color: graytext; +} + +:root:not(.winxp) html|input.empty:-moz-system-metric(windows-default-theme) { + font-style: italic; +} + +html|input.num { + text-align: end; +} + +#mac html|input.num { + margin-inline-end: 8px; +} + +#win html|input.num { + padding: 0 !important; +} + +#linux html|input.num { + margin-inline-end: 3px; + padding: 3px 4px; +} + +html|div.plainfield { + color: -moz-fieldtext; + white-space: pre; +} + diff --git a/editor/reftests/xul/number-1.xul b/editor/reftests/xul/number-1.xul new file mode 100644 index 000000000..a37ce6429 --- /dev/null +++ b/editor/reftests/xul/number-1.xul @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> + +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + title="Textbox tests"> + + <script type="text/javascript" src="platform.js"/> + + <textbox type="number"/> + +</window> diff --git a/editor/reftests/xul/number-2.xul b/editor/reftests/xul/number-2.xul new file mode 100644 index 000000000..73d2e84a0 --- /dev/null +++ b/editor/reftests/xul/number-2.xul @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> + +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + title="Textbox tests"> + + <script type="text/javascript" src="platform.js"/> + + <textbox type="number" hidespinbuttons="false"/> + +</window> diff --git a/editor/reftests/xul/number-3.xul b/editor/reftests/xul/number-3.xul new file mode 100644 index 000000000..8ddadcf63 --- /dev/null +++ b/editor/reftests/xul/number-3.xul @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> + +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + title="Textbox tests"> + + <script type="text/javascript" src="platform.js"/> + + <textbox type="number" hidespinbuttons="true"/> + +</window> diff --git a/editor/reftests/xul/number-4.xul b/editor/reftests/xul/number-4.xul new file mode 100644 index 000000000..40650e8e4 --- /dev/null +++ b/editor/reftests/xul/number-4.xul @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> + +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + title="Textbox tests"> + + <script type="text/javascript" src="platform.js"/> + + <textbox type="number" value="1" hidespinbuttons="true"/> + +</window> diff --git a/editor/reftests/xul/number-5.xul b/editor/reftests/xul/number-5.xul new file mode 100644 index 000000000..bd6346fe5 --- /dev/null +++ b/editor/reftests/xul/number-5.xul @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> + +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + title="Textbox tests"> + + <script type="text/javascript" src="platform.js"/> + + <textbox type="number" value="test" hidespinbuttons="true"/> + +</window> diff --git a/editor/reftests/xul/number-ref.xul b/editor/reftests/xul/number-ref.xul new file mode 100644 index 000000000..abff29d97 --- /dev/null +++ b/editor/reftests/xul/number-ref.xul @@ -0,0 +1,13 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> +<?xml-stylesheet href="input.css" type="text/css"?> + +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + title="Textbox tests"> + + <script type="text/javascript" src="platform.js"/> + + <html:input value="0" class="num"/> + +</window> diff --git a/editor/reftests/xul/numberwithvalue-1.xul b/editor/reftests/xul/numberwithvalue-1.xul new file mode 100644 index 000000000..3aaebcfdf --- /dev/null +++ b/editor/reftests/xul/numberwithvalue-1.xul @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> + +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + title="Textbox tests"> + + <script type="text/javascript" src="platform.js"/> + + <textbox type="number" value="123" hidespinbuttons="true"/> + +</window> diff --git a/editor/reftests/xul/numberwithvalue-ref.xul b/editor/reftests/xul/numberwithvalue-ref.xul new file mode 100644 index 000000000..8ddc7a144 --- /dev/null +++ b/editor/reftests/xul/numberwithvalue-ref.xul @@ -0,0 +1,13 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> +<?xml-stylesheet href="input.css" type="text/css"?> + +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + title="Textbox tests"> + + <script type="text/javascript" src="platform.js"/> + + <html:input value="123" class="num"/> + +</window> diff --git a/editor/reftests/xul/passwd-1.xul b/editor/reftests/xul/passwd-1.xul new file mode 100644 index 000000000..1f9619a16 --- /dev/null +++ b/editor/reftests/xul/passwd-1.xul @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> + +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + title="Textbox tests"> + + <script type="text/javascript" src="platform.js"/> + + <textbox type="password" value="test"/> + +</window> diff --git a/editor/reftests/xul/passwd-2.xul b/editor/reftests/xul/passwd-2.xul new file mode 100644 index 000000000..54fa5937b --- /dev/null +++ b/editor/reftests/xul/passwd-2.xul @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> + +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + title="Textbox tests"> + + <script type="text/javascript" src="platform.js"/> + + <textbox type="password" value="abcd"/> + +</window> diff --git a/editor/reftests/xul/passwd-3.xul b/editor/reftests/xul/passwd-3.xul new file mode 100644 index 000000000..b1849931b --- /dev/null +++ b/editor/reftests/xul/passwd-3.xul @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> + +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + title="Textbox tests"> + + <script type="text/javascript" src="platform.js"/> + + <textbox value="test"/> + +</window> diff --git a/editor/reftests/xul/passwd-ref.xul b/editor/reftests/xul/passwd-ref.xul new file mode 100644 index 000000000..1f93bc339 --- /dev/null +++ b/editor/reftests/xul/passwd-ref.xul @@ -0,0 +1,13 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> +<?xml-stylesheet href="input.css" type="text/css"?> + +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + title="Textbox tests"> + + <script type="text/javascript" src="platform.js"/> + + <html:input type="password" value="test"/> + +</window> diff --git a/editor/reftests/xul/placeholder-reset.css b/editor/reftests/xul/placeholder-reset.css new file mode 100644 index 000000000..a2c41e69b --- /dev/null +++ b/editor/reftests/xul/placeholder-reset.css @@ -0,0 +1,8 @@ +@namespace url('http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul'); +@namespace html url('http://www.w3.org/1999/xhtml'); + +/* We need to have a non-transparent placeholder so we can test it. */ +html|input::placeholder { + opacity: 1.0; + color: graytext; +} diff --git a/editor/reftests/xul/plain-1.xul b/editor/reftests/xul/plain-1.xul new file mode 100644 index 000000000..ab573d0fc --- /dev/null +++ b/editor/reftests/xul/plain-1.xul @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> + +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + title="Textbox tests"> + + <script type="text/javascript" src="platform.js"/> + + <textbox value=" test" class="plain"/> + +</window> diff --git a/editor/reftests/xul/plain-ref.xul b/editor/reftests/xul/plain-ref.xul new file mode 100644 index 000000000..f345e675e --- /dev/null +++ b/editor/reftests/xul/plain-ref.xul @@ -0,0 +1,13 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> +<?xml-stylesheet href="input.css" type="text/css"?> + +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + title="Textbox tests"> + + <script type="text/javascript" src="platform.js"/> + + <html:div class="plainfield"> test</html:div> + +</window> diff --git a/editor/reftests/xul/platform.js b/editor/reftests/xul/platform.js new file mode 100644 index 000000000..f45e6d1f5 --- /dev/null +++ b/editor/reftests/xul/platform.js @@ -0,0 +1,28 @@ +// The appearance of XUL elements is platform-specific, so we set the +// style of the root element according to the platform, so that the +// CSS code inside input.css can select the correct styles for each +// platform. + +var id; +var ua = navigator.userAgent; + +if (/Windows/.test(ua)) { + id = "win"; + if (/NT 5\.1/.test(ua) || /NT 5\.2; Win64/.test(ua)) + var classname = "winxp"; +} +else if (/Linux/.test(ua)) + id = "linux"; +else if (/SunOS/.test(ua)) + id = "linux"; +else if (/Mac OS X/.test(ua)) + id = "mac"; + +if (id) + document.documentElement.setAttribute("id", id); +else + document.documentElement.appendChild( + document.createTextNode("Unrecognized platform") + ); +if (classname) + document.documentElement.setAttribute("class", classname); diff --git a/editor/reftests/xul/reftest-stylo.list b/editor/reftests/xul/reftest-stylo.list new file mode 100644 index 000000000..cfaa7a058 --- /dev/null +++ b/editor/reftests/xul/reftest-stylo.list @@ -0,0 +1,67 @@ +# DO NOT EDIT! This is a auto-generated temporary list for Stylo testing +fails-if(Android||B2G) skip-if((B2G&&browserIsRemote)||Mulet||((browserIsRemote&&winWidget))) == empty-1.xul empty-1.xul +# bug 783658 +# Initial mulet triage: parity with B2G/B2G Desktop, Windows: bug 1239170 +skip-if((B2G&&browserIsRemote)||Mulet) == empty-2.xul empty-2.xul +# Initial mulet triage: parity with B2G/B2G Desktop +# There is no way to simulate an autocomplete textbox in windows XP/Vista/7/8/10 default theme using CSS. +# Therefore, the equlity tests below should be marked as failing. +fails-if(Android||B2G) fails-if(windowsDefaultTheme&&/^Windows\x20NT\x20(5\.[12]|6\.[012]|10\.0)/.test(http.oscpu)) skip-if((B2G&&browserIsRemote)||Mulet) == autocomplete-1.xul autocomplete-1.xul +# bug 783658 +# Initial mulet triage: parity with B2G/B2G Desktop +fails-if(Android||B2G) fails-if(windowsDefaultTheme&&/^Windows\x20NT\x20(5\.[12]|6\.[012]|10\.0)/.test(http.oscpu)) skip-if((B2G&&browserIsRemote)||Mulet) == emptyautocomplete-1.xul emptyautocomplete-1.xul +# bug 783658 +# Initial mulet triage: parity with B2G/B2G Desktop +skip-if((B2G&&browserIsRemote)||Mulet) == emptymultiline-1.xul emptymultiline-1.xul +# Initial mulet triage: parity with B2G/B2G Desktop +fails-if(Android||B2G) skip-if((B2G&&browserIsRemote)||Mulet) == emptymultiline-2.xul emptymultiline-2.xul +# bug 783658 +# Initial mulet triage: parity with B2G/B2G Desktop +fails-if(Android||B2G) skip-if((B2G&&browserIsRemote)||Mulet||((browserIsRemote&&winWidget))) == emptytextbox-1.xul emptytextbox-1.xul +# bug 783658 +# Initial mulet triage: parity with B2G/B2G Desktop, Windows: bug 1239170 +fails-if(Android||B2G) skip-if((B2G&&browserIsRemote)||Mulet||((browserIsRemote&&winWidget))) == emptytextbox-2.xul emptytextbox-2.xul +# bug 783658 +# Initial mulet triage: parity with B2G/B2G Desktop, Windows: bug 1239170 +fails skip-if((B2G&&browserIsRemote)||Mulet) == emptytextbox-3.xul emptytextbox-3.xul +# Initial mulet triage: parity with B2G/B2G Desktop +skip-if((B2G&&browserIsRemote)||Mulet) == emptytextbox-4.xul emptytextbox-4.xul +# Initial mulet triage: parity with B2G/B2G Desktop +fails-if(Android||B2G) skip-if((B2G&&browserIsRemote)||Mulet||((browserIsRemote&&winWidget))) == emptytextbox-5.xul emptytextbox-5.xul +# bug 783658 +# Initial mulet triage: parity with B2G/B2G Desktop, Windows: bug 1239170 +# There is no way to simulate a number textbox in windows XP/Vista/7 default theme using CSS. +# Therefore, the equlity tests below should be marked as failing. +skip-if((B2G&&browserIsRemote)||Mulet) == number-1.xul number-1.xul +# Initial mulet triage: parity with B2G/B2G Desktop +skip-if((B2G&&browserIsRemote)||Mulet) == number-2.xul number-2.xul +# Initial mulet triage: parity with B2G/B2G Desktop +fails-if(Android||B2G) fails-if(windowsDefaultTheme&&/^Windows\x20NT\x20(5\.[12]|6\.[012]|10\.0)/.test(http.oscpu)) skip-if((B2G&&browserIsRemote)||Mulet) == number-3.xul number-3.xul +# bug 783658 +# Initial mulet triage: parity with B2G/B2G Desktop +skip-if((B2G&&browserIsRemote)||Mulet) == number-4.xul number-4.xul +# Initial mulet triage: parity with B2G/B2G Desktop +fails-if(Android||B2G) fails-if(windowsDefaultTheme&&/^Windows\x20NT\x20(5\.[12]|6\.[012]|10\.0)/.test(http.oscpu)) skip-if((B2G&&browserIsRemote)||Mulet) == number-5.xul number-5.xul +# bug 783658 +# Initial mulet triage: parity with B2G/B2G Desktop +fails-if(Android||B2G) fails-if(windowsDefaultTheme&&/^Windows\x20NT\x20(5\.[12]|6\.[012]|10\.0)/.test(http.oscpu)) skip-if((B2G&&browserIsRemote)||Mulet) == numberwithvalue-1.xul numberwithvalue-1.xul +# bug 783658 +# Initial mulet triage: parity with B2G/B2G Desktop +fails-if(Android||B2G) skip-if((B2G&&browserIsRemote)||Mulet||((browserIsRemote&&winWidget))) == passwd-1.xul passwd-1.xul +# bug 783658 +# Initial mulet triage: parity with B2G/B2G Desktop, Windows: bug 1239170 +fails-if(Android||B2G) skip-if((B2G&&browserIsRemote)||Mulet||((browserIsRemote&&winWidget))) == passwd-2.xul passwd-2.xul +# bug 783658 +# Initial mulet triage: parity with B2G/B2G Desktop, Windows: bug 1239170 +skip-if((B2G&&browserIsRemote)||Mulet) == passwd-3.xul passwd-3.xul +# Initial mulet triage: parity with B2G/B2G Desktop +fails-if(Android||B2G) skip-if((B2G&&browserIsRemote)||Mulet) == plain-1.xul plain-1.xul +# bug 783658 +# Initial mulet triage: parity with B2G/B2G Desktop +fails-if(Android||B2G) skip-if((B2G&&browserIsRemote)||Mulet||(browserIsRemote&&winWidget)) == textbox-1.xul textbox-1.xul +# Initial mulet triage: parity with B2G/B2G Desktop, Windows: bug 1239170 +skip-if((B2G&&browserIsRemote)||Mulet) == textbox-disabled.xul textbox-disabled.xul +# Initial mulet triage: parity with B2G/B2G Desktop +# Read-only textboxes look like normal textboxes in windows Vista/7 default theme +fails-if(windowsDefaultTheme&&/^Windows\x20NT\x20(6\.[012]|10\.0)/.test(http.oscpu)) skip-if((B2G&&browserIsRemote)||Mulet||(browserIsRemote&&winWidget)) == textbox-readonly.xul textbox-readonly.xul +# Initial mulet triage: parity with B2G/B2G Desktop, Windows: bug 1239170 diff --git a/editor/reftests/xul/reftest.list b/editor/reftests/xul/reftest.list new file mode 100644 index 000000000..76bd9174f --- /dev/null +++ b/editor/reftests/xul/reftest.list @@ -0,0 +1,29 @@ +fails-if(Android) skip-if(browserIsRemote&&winWidget) == empty-1.xul empty-ref.xul # Windows: bug 1239170 +!= empty-2.xul empty-ref.xul +# There is no way to simulate an autocomplete textbox in windows XP/Vista/7/8/10 default theme using CSS. +# Therefore, the equlity tests below should be marked as failing. +fails-if(Android) fails-if(windowsDefaultTheme&&/^Windows\x20NT\x20(5\.[12]|6\.[012]|10\.0)/.test(http.oscpu)) == autocomplete-1.xul autocomplete-ref.xul # bug 783658 +fails-if(Android) fails-if(windowsDefaultTheme&&/^Windows\x20NT\x20(5\.[12]|6\.[012]|10\.0)/.test(http.oscpu)) == emptyautocomplete-1.xul emptyautocomplete-ref.xul # bug 783658 +!= emptymultiline-1.xul emptymultiline-ref.xul +fails-if(Android) == emptymultiline-2.xul emptymultiline-ref.xul # bug 783658 +fails-if(Android) skip-if(browserIsRemote&&winWidget) == emptytextbox-1.xul emptytextbox-ref.xul # Windows: bug 1239170 +fails-if(Android) skip-if(browserIsRemote&&winWidget) == emptytextbox-2.xul emptytextbox-ref.xul # Windows: bug 1239170 +!= emptytextbox-3.xul emptytextbox-ref.xul +!= emptytextbox-4.xul emptytextbox-ref.xul +fails-if(Android) skip-if(browserIsRemote&&winWidget) == emptytextbox-5.xul emptytextbox-ref.xul # Windows: bug 1239170 +# There is no way to simulate a number textbox in windows XP/Vista/7 default theme using CSS. +# Therefore, the equlity tests below should be marked as failing. +!= number-1.xul number-ref.xul +!= number-2.xul number-ref.xul +fails-if(Android) fails-if(windowsDefaultTheme&&/^Windows\x20NT\x20(5\.[12]|6\.[012]|10\.0)/.test(http.oscpu)) == number-3.xul number-ref.xul # bug 783658 +!= number-4.xul number-ref.xul +fails-if(Android) fails-if(windowsDefaultTheme&&/^Windows\x20NT\x20(5\.[12]|6\.[012]|10\.0)/.test(http.oscpu)) == number-5.xul number-ref.xul # bug 783658 +fails-if(Android) fails-if(windowsDefaultTheme&&/^Windows\x20NT\x20(5\.[12]|6\.[012]|10\.0)/.test(http.oscpu)) == numberwithvalue-1.xul numberwithvalue-ref.xul # bug 783658 +fails-if(Android) skip-if(browserIsRemote&&winWidget) == passwd-1.xul passwd-ref.xul # Windows: bug 1239170 +fails-if(Android) skip-if(browserIsRemote&&winWidget) == passwd-2.xul passwd-ref.xul # Windows: bug 1239170 +!= passwd-3.xul passwd-ref.xul +fails-if(Android) == plain-1.xul plain-ref.xul # bug 783658 +fails-if(Android) skip-if(browserIsRemote&&winWidget) == textbox-1.xul textbox-ref.xul # Windows: bug 1239170 +!= textbox-disabled.xul textbox-ref.xul +# Read-only textboxes look like normal textboxes in windows Vista/7 default theme +fails-if(windowsDefaultTheme&&/^Windows\x20NT\x20(6\.[012]|10\.0)/.test(http.oscpu)) skip-if(browserIsRemote&&winWidget) != textbox-readonly.xul textbox-ref.xul # Windows: bug 1239170 diff --git a/editor/reftests/xul/textbox-1.xul b/editor/reftests/xul/textbox-1.xul new file mode 100644 index 000000000..aae7e89ea --- /dev/null +++ b/editor/reftests/xul/textbox-1.xul @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> + +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + title="Textbox tests"> + + <script type="text/javascript" src="platform.js"/> + + <textbox value=" test"/> + +</window> diff --git a/editor/reftests/xul/textbox-disabled.xul b/editor/reftests/xul/textbox-disabled.xul new file mode 100644 index 000000000..c1ae83a3c --- /dev/null +++ b/editor/reftests/xul/textbox-disabled.xul @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> + +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + title="Textbox tests"> + + <script type="text/javascript" src="platform.js"/> + + <textbox value=" test" disabled="true"/> + +</window> diff --git a/editor/reftests/xul/textbox-readonly.xul b/editor/reftests/xul/textbox-readonly.xul new file mode 100644 index 000000000..f9d8b5f57 --- /dev/null +++ b/editor/reftests/xul/textbox-readonly.xul @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> + +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + title="Textbox tests"> + + <script type="text/javascript" src="platform.js"/> + + <textbox value=" test" readonly="true"/> + +</window> diff --git a/editor/reftests/xul/textbox-ref.xul b/editor/reftests/xul/textbox-ref.xul new file mode 100644 index 000000000..8be9fc8e4 --- /dev/null +++ b/editor/reftests/xul/textbox-ref.xul @@ -0,0 +1,13 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> +<?xml-stylesheet href="input.css" type="text/css"?> + +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + title="Textbox tests"> + + <script type="text/javascript" src="platform.js"/> + + <html:input value=" test"/> + +</window> |