summaryrefslogtreecommitdiffstats
path: root/layout/reftests/forms/textbox
diff options
context:
space:
mode:
Diffstat (limited to 'layout/reftests/forms/textbox')
-rw-r--r--layout/reftests/forms/textbox/accesskey-1-notref.xul35
-rw-r--r--layout/reftests/forms/textbox/accesskey-1.xul35
-rw-r--r--layout/reftests/forms/textbox/accesskey-2-ref.xul36
-rw-r--r--layout/reftests/forms/textbox/accesskey-2.xul36
-rw-r--r--layout/reftests/forms/textbox/accesskey-3-notref.xul36
-rw-r--r--layout/reftests/forms/textbox/accesskey-3-ref.xul36
-rw-r--r--layout/reftests/forms/textbox/accesskey-3.xul36
-rw-r--r--layout/reftests/forms/textbox/accesskey-4-notref.xul36
-rw-r--r--layout/reftests/forms/textbox/accesskey-4-ref.xul36
-rw-r--r--layout/reftests/forms/textbox/accesskey-4.xul36
-rw-r--r--layout/reftests/forms/textbox/align-baseline-1-ref.xul26
-rw-r--r--layout/reftests/forms/textbox/align-baseline-1.xul34
-rw-r--r--layout/reftests/forms/textbox/reftest-stylo.list28
-rw-r--r--layout/reftests/forms/textbox/reftest.list11
-rw-r--r--layout/reftests/forms/textbox/setsize-ref.xul9
-rw-r--r--layout/reftests/forms/textbox/setsize.xul8
16 files changed, 474 insertions, 0 deletions
diff --git a/layout/reftests/forms/textbox/accesskey-1-notref.xul b/layout/reftests/forms/textbox/accesskey-1-notref.xul
new file mode 100644
index 000000000..697d10879
--- /dev/null
+++ b/layout/reftests/forms/textbox/accesskey-1-notref.xul
@@ -0,0 +1,35 @@
+<?xml version="1.0"?>
+<?xml-stylesheet href="chrome://global/skin/"?>
+<window title="textbox access key tests (see bug 698185)"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ xmlns:html="http://www.w3.org/1999/xhtml">
+ <html:style type="text/css">
+ hbox {
+ margin-top: 0px;
+ padding-top: 0px;
+ font-size: 36px;
+ }
+ label, textbox {
+ -moz-appearance: none;
+ background: inherit;
+ border: none 0px;
+ }
+ label {
+ margin-top: 0px;
+ padding-top: 0px;
+ margin-bottom: 0px;
+ padding-bottom: 0px;
+ }
+ textbox {
+ margin-top: 12px;
+ padding-top: 8px;
+ margin-bottom: 5px;
+ padding-bottom: 9px;
+ }
+ </html:style>
+
+ <hbox align="baseline">
+ <label value="test"/>
+ <textbox value="text"/>
+ </hbox>
+</window>
diff --git a/layout/reftests/forms/textbox/accesskey-1.xul b/layout/reftests/forms/textbox/accesskey-1.xul
new file mode 100644
index 000000000..39ad15b2d
--- /dev/null
+++ b/layout/reftests/forms/textbox/accesskey-1.xul
@@ -0,0 +1,35 @@
+<?xml version="1.0"?>
+<?xml-stylesheet href="chrome://global/skin/"?>
+<window title="textbox access key tests (see bug 698185)"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ xmlns:html="http://www.w3.org/1999/xhtml">
+ <html:style type="text/css">
+ hbox {
+ margin-top: 0px;
+ padding-top: 0px;
+ font-size: 36px;
+ }
+ label, textbox {
+ -moz-appearance: none;
+ background: inherit;
+ border: none 0px;
+ }
+ label {
+ margin-top: 0px;
+ padding-top: 0px;
+ margin-bottom: 0px;
+ padding-bottom: 0px;
+ }
+ textbox {
+ margin-top: 12px;
+ padding-top: 8px;
+ margin-bottom: 5px;
+ padding-bottom: 9px;
+ }
+ </html:style>
+
+ <hbox align="baseline">
+ <label value="test" accesskey="s"/>
+ <textbox value="text"/>
+ </hbox>
+</window>
diff --git a/layout/reftests/forms/textbox/accesskey-2-ref.xul b/layout/reftests/forms/textbox/accesskey-2-ref.xul
new file mode 100644
index 000000000..ce6ed1ebc
--- /dev/null
+++ b/layout/reftests/forms/textbox/accesskey-2-ref.xul
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+<?xml-stylesheet href="chrome://global/skin/"?>
+<window title="textbox access key tests (see bug 698185)"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ xmlns:html="http://www.w3.org/1999/xhtml">
+ <html:style type="text/css">
+ hbox {
+ margin-top: 0px;
+ padding-top: 0px;
+ font-size: 36px;
+ }
+ label, textbox {
+ -moz-appearance: none;
+ background: inherit;
+ border: none 0px;
+ }
+ label {
+ margin-top: 0px;
+ padding-top: 0px;
+ margin-bottom: 0px;
+ padding-bottom: 0px;
+ }
+ textbox {
+ margin-top: 12px;
+ padding-top: 8px;
+ margin-bottom: 5px;
+ padding-bottom: 9px;
+ }
+ </html:style>
+
+ <hbox align="baseline">
+ <!-- access key in LTR-overridden Arabic text -->
+ <label value="&#x202d;&#x64a;&#x628;&#x631;&#x639;&#x644;&#x627;&#x202c; test" accesskey="&#x639;"/>
+ <textbox value=""/>
+ </hbox>
+</window>
diff --git a/layout/reftests/forms/textbox/accesskey-2.xul b/layout/reftests/forms/textbox/accesskey-2.xul
new file mode 100644
index 000000000..98b2c272b
--- /dev/null
+++ b/layout/reftests/forms/textbox/accesskey-2.xul
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+<?xml-stylesheet href="chrome://global/skin/"?>
+<window title="textbox access key tests (see bug 698185)"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ xmlns:html="http://www.w3.org/1999/xhtml">
+ <html:style type="text/css">
+ hbox {
+ margin-top: 0px;
+ padding-top: 0px;
+ font-size: 36px;
+ }
+ label, textbox {
+ -moz-appearance: none;
+ background: inherit;
+ border: none 0px;
+ }
+ label {
+ margin-top: 0px;
+ padding-top: 0px;
+ margin-bottom: 0px;
+ padding-bottom: 0px;
+ }
+ textbox {
+ margin-top: 12px;
+ padding-top: 8px;
+ margin-bottom: 5px;
+ padding-bottom: 9px;
+ }
+ </html:style>
+
+ <hbox align="baseline">
+ <!-- access key in RTL Arabic text -->
+ <label value="&#x627;&#x644;&#x639;&#x631;&#x628;&#x64a; test" accesskey="&#x639;"/>
+ <textbox value=""/>
+ </hbox>
+</window>
diff --git a/layout/reftests/forms/textbox/accesskey-3-notref.xul b/layout/reftests/forms/textbox/accesskey-3-notref.xul
new file mode 100644
index 000000000..1a81e2811
--- /dev/null
+++ b/layout/reftests/forms/textbox/accesskey-3-notref.xul
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+<?xml-stylesheet href="chrome://global/skin/"?>
+<window title="textbox access key tests (see bug 698185)"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ xmlns:html="http://www.w3.org/1999/xhtml">
+ <html:style type="text/css">
+ hbox {
+ margin-top: 0px;
+ padding-top: 0px;
+ font-size: 36px;
+ }
+ label, textbox {
+ -moz-appearance: none;
+ background: inherit;
+ border: none 0px;
+ }
+ label {
+ margin-top: 0px;
+ padding-top: 0px;
+ margin-bottom: 0px;
+ padding-bottom: 0px;
+ }
+ textbox {
+ margin-top: 12px;
+ padding-top: 8px;
+ margin-bottom: 5px;
+ padding-bottom: 9px;
+ }
+ </html:style>
+
+ <hbox align="baseline">
+ <!-- no access key, for != test -->
+ <label value="&#x627;&#x644;&#x639;&#x631;&#x628;&#x64a; hello world"/>
+ <textbox value=""/>
+ </hbox>
+</window>
diff --git a/layout/reftests/forms/textbox/accesskey-3-ref.xul b/layout/reftests/forms/textbox/accesskey-3-ref.xul
new file mode 100644
index 000000000..b7907e9a6
--- /dev/null
+++ b/layout/reftests/forms/textbox/accesskey-3-ref.xul
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+<?xml-stylesheet href="chrome://global/skin/"?>
+<window title="textbox access key tests (see bug 698185)"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ xmlns:html="http://www.w3.org/1999/xhtml">
+ <html:style type="text/css">
+ hbox {
+ margin-top: 0px;
+ padding-top: 0px;
+ font-size: 36px;
+ }
+ label, textbox {
+ -moz-appearance: none;
+ background: inherit;
+ border: none 0px;
+ }
+ label {
+ margin-top: 0px;
+ padding-top: 0px;
+ margin-bottom: 0px;
+ padding-bottom: 0px;
+ }
+ textbox {
+ margin-top: 12px;
+ padding-top: 8px;
+ margin-bottom: 5px;
+ padding-bottom: 9px;
+ }
+ </html:style>
+
+ <hbox align="baseline">
+ <!-- access key in LTR text that follows RTL text (mixed direction) -->
+ <label value="&#x627;&#x644;&#x639;&#x631;&#x628;&#x64a; hello world" accesskey="d"/>
+ <textbox value=""/>
+ </hbox>
+</window>
diff --git a/layout/reftests/forms/textbox/accesskey-3.xul b/layout/reftests/forms/textbox/accesskey-3.xul
new file mode 100644
index 000000000..97e2c6fbc
--- /dev/null
+++ b/layout/reftests/forms/textbox/accesskey-3.xul
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+<?xml-stylesheet href="chrome://global/skin/"?>
+<window title="textbox access key tests (see bug 698185)"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ xmlns:html="http://www.w3.org/1999/xhtml">
+ <html:style type="text/css">
+ hbox {
+ margin-top: 0px;
+ padding-top: 0px;
+ font-size: 36px;
+ }
+ label, textbox {
+ -moz-appearance: none;
+ background: inherit;
+ border: none 0px;
+ }
+ label {
+ margin-top: 0px;
+ padding-top: 0px;
+ margin-bottom: 0px;
+ padding-bottom: 0px;
+ }
+ textbox {
+ margin-top: 12px;
+ padding-top: 8px;
+ margin-bottom: 5px;
+ padding-bottom: 9px;
+ }
+ </html:style>
+
+ <hbox align="baseline">
+ <!-- access key in RTL-overridden English text -->
+ <label value="&#x627;&#x644;&#x639;&#x631;&#x628;&#x64a; hello &#x202e;dlrow&#x202c;" accesskey="d"/>
+ <textbox value=""/>
+ </hbox>
+</window>
diff --git a/layout/reftests/forms/textbox/accesskey-4-notref.xul b/layout/reftests/forms/textbox/accesskey-4-notref.xul
new file mode 100644
index 000000000..1a81e2811
--- /dev/null
+++ b/layout/reftests/forms/textbox/accesskey-4-notref.xul
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+<?xml-stylesheet href="chrome://global/skin/"?>
+<window title="textbox access key tests (see bug 698185)"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ xmlns:html="http://www.w3.org/1999/xhtml">
+ <html:style type="text/css">
+ hbox {
+ margin-top: 0px;
+ padding-top: 0px;
+ font-size: 36px;
+ }
+ label, textbox {
+ -moz-appearance: none;
+ background: inherit;
+ border: none 0px;
+ }
+ label {
+ margin-top: 0px;
+ padding-top: 0px;
+ margin-bottom: 0px;
+ padding-bottom: 0px;
+ }
+ textbox {
+ margin-top: 12px;
+ padding-top: 8px;
+ margin-bottom: 5px;
+ padding-bottom: 9px;
+ }
+ </html:style>
+
+ <hbox align="baseline">
+ <!-- no access key, for != test -->
+ <label value="&#x627;&#x644;&#x639;&#x631;&#x628;&#x64a; hello world"/>
+ <textbox value=""/>
+ </hbox>
+</window>
diff --git a/layout/reftests/forms/textbox/accesskey-4-ref.xul b/layout/reftests/forms/textbox/accesskey-4-ref.xul
new file mode 100644
index 000000000..df787415f
--- /dev/null
+++ b/layout/reftests/forms/textbox/accesskey-4-ref.xul
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+<?xml-stylesheet href="chrome://global/skin/"?>
+<window title="textbox access key tests (see bug 698185)"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ xmlns:html="http://www.w3.org/1999/xhtml">
+ <html:style type="text/css">
+ hbox {
+ margin-top: 0px;
+ padding-top: 0px;
+ font-size: 36px;
+ }
+ label, textbox {
+ -moz-appearance: none;
+ background: inherit;
+ border: none 0px;
+ }
+ label {
+ margin-top: 0px;
+ padding-top: 0px;
+ margin-bottom: 0px;
+ padding-bottom: 0px;
+ }
+ textbox {
+ margin-top: 12px;
+ padding-top: 8px;
+ margin-bottom: 5px;
+ padding-bottom: 9px;
+ }
+ </html:style>
+
+ <hbox align="baseline">
+ <!-- access key in English text following LTR-overridden Arabic -->
+ <label value="&#x202d;&#x64a;&#x628;&#x631;&#x639;&#x644;&#x627;&#x202c; hello world" accesskey="w"/>
+ <textbox value=""/>
+ </hbox>
+</window>
diff --git a/layout/reftests/forms/textbox/accesskey-4.xul b/layout/reftests/forms/textbox/accesskey-4.xul
new file mode 100644
index 000000000..d63bafbc5
--- /dev/null
+++ b/layout/reftests/forms/textbox/accesskey-4.xul
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+<?xml-stylesheet href="chrome://global/skin/"?>
+<window title="textbox access key tests (see bug 698185)"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ xmlns:html="http://www.w3.org/1999/xhtml">
+ <html:style type="text/css">
+ hbox {
+ margin-top: 0px;
+ padding-top: 0px;
+ font-size: 36px;
+ }
+ label, textbox {
+ -moz-appearance: none;
+ background: inherit;
+ border: none 0px;
+ }
+ label {
+ margin-top: 0px;
+ padding-top: 0px;
+ margin-bottom: 0px;
+ padding-bottom: 0px;
+ }
+ textbox {
+ margin-top: 12px;
+ padding-top: 8px;
+ margin-bottom: 5px;
+ padding-bottom: 9px;
+ }
+ </html:style>
+
+ <hbox align="baseline">
+ <!-- access key in English text following RTL Arabic -->
+ <label value="&#x627;&#x644;&#x639;&#x631;&#x628;&#x64a; hello world" accesskey="w"/>
+ <textbox value=""/>
+ </hbox>
+</window>
diff --git a/layout/reftests/forms/textbox/align-baseline-1-ref.xul b/layout/reftests/forms/textbox/align-baseline-1-ref.xul
new file mode 100644
index 000000000..646e412de
--- /dev/null
+++ b/layout/reftests/forms/textbox/align-baseline-1-ref.xul
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<?xml-stylesheet href="chrome://global/skin/"?>
+<window title="textbox align=baseline reference"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ xmlns:html="http://www.w3.org/1999/xhtml">
+ <html:style type="text/css">
+ #container {
+ margin-top: 12px;
+ padding-top: 8px;
+ }
+ label, textbox {
+ -moz-appearance: none;
+ background: inherit;
+ border: none 0px;
+ margin-top: 0px;
+ padding-top: 0px;
+ margin-bottom: 0px;
+ padding-bottom: 0px;
+ }
+ </html:style>
+
+ <hbox id="container" align="center">
+ <label value="test"/>
+ <textbox value="text"/>
+ </hbox>
+</window>
diff --git a/layout/reftests/forms/textbox/align-baseline-1.xul b/layout/reftests/forms/textbox/align-baseline-1.xul
new file mode 100644
index 000000000..711e1858a
--- /dev/null
+++ b/layout/reftests/forms/textbox/align-baseline-1.xul
@@ -0,0 +1,34 @@
+<?xml version="1.0"?>
+<?xml-stylesheet href="chrome://global/skin/"?>
+<window title="textbox align=baseline test (bug 494901)"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ xmlns:html="http://www.w3.org/1999/xhtml">
+ <html:style type="text/css">
+ hbox {
+ margin-top: 0px;
+ padding-top: 0px;
+ }
+ label, textbox {
+ -moz-appearance: none;
+ background: inherit;
+ border: none 0px;
+ }
+ label {
+ margin-top: 0px;
+ padding-top: 0px;
+ margin-bottom: 0px;
+ padding-bottom: 0px;
+ }
+ textbox {
+ margin-top: 12px;
+ padding-top: 8px;
+ margin-bottom: 5px;
+ padding-bottom: 9px;
+ }
+ </html:style>
+
+ <hbox align="baseline">
+ <label value="test"/>
+ <textbox value="text"/>
+ </hbox>
+</window>
diff --git a/layout/reftests/forms/textbox/reftest-stylo.list b/layout/reftests/forms/textbox/reftest-stylo.list
new file mode 100644
index 000000000..f14a2c20a
--- /dev/null
+++ b/layout/reftests/forms/textbox/reftest-stylo.list
@@ -0,0 +1,28 @@
+# DO NOT EDIT! This is a auto-generated temporary list for Stylo testing
+# access-key tests are no use on OS X because access keys are not indicated visually
+# no real XUL theme on Android so we just skip
+skip-if(cocoaWidget||((B2G&&browserIsRemote)||Mulet)||Android) == accesskey-1.xul accesskey-1.xul
+# bug 974780
+# Initial mulet triage: parity with B2G/B2G Desktop
+skip-if(cocoaWidget||((B2G&&browserIsRemote)||Mulet)||Android) == accesskey-2.xul accesskey-2.xul
+# bug 974780
+# Initial mulet triage: parity with B2G/B2G Desktop
+# accesskey-3 fails because of defects in XUL bidi support
+skip == accesskey-3.xul accesskey-3.xul
+# bug 974780
+# Initial mulet triage: parity with B2G/B2G Desktop
+skip-if(cocoaWidget||((B2G&&browserIsRemote)||Mulet)||Android) == accesskey-3.xul accesskey-3.xul
+# bug 974780
+# Initial mulet triage: parity with B2G/B2G Desktop
+skip-if(cocoaWidget||((B2G&&browserIsRemote)||Mulet)||Android) == accesskey-4.xul accesskey-4.xul
+# bug 974780
+# Initial mulet triage: parity with B2G/B2G Desktop
+skip-if(cocoaWidget||((B2G&&browserIsRemote)||Mulet)||Android) == accesskey-4.xul accesskey-4.xul
+# bug 974780
+# Initial mulet triage: parity with B2G/B2G Desktop
+skip-if((B2G&&browserIsRemote)||Mulet||Android) == align-baseline-1.xul align-baseline-1.xul
+# test for bug 494901
+# Initial mulet triage: parity with B2G/B2G Desktop
+skip-if(B2G||Mulet||Android) == setsize.xul setsize.xul
+# bug 974780
+# Initial mulet triage: parity with B2G/B2G Desktop
diff --git a/layout/reftests/forms/textbox/reftest.list b/layout/reftests/forms/textbox/reftest.list
new file mode 100644
index 000000000..eb0b8fc9d
--- /dev/null
+++ b/layout/reftests/forms/textbox/reftest.list
@@ -0,0 +1,11 @@
+# access-key tests are no use on OS X because access keys are not indicated visually
+# no real XUL theme on Android so we just skip
+skip-if(cocoaWidget||Android) != accesskey-1.xul accesskey-1-notref.xul
+skip-if(cocoaWidget||Android) == accesskey-2.xul accesskey-2-ref.xul
+# accesskey-3 fails because of defects in XUL bidi support
+fails-if(!cocoaWidget) skip-if(cocoaWidget||Android) == accesskey-3.xul accesskey-3-ref.xul
+skip-if(cocoaWidget||Android) != accesskey-3.xul accesskey-3-notref.xul
+skip-if(cocoaWidget||Android) == accesskey-4.xul accesskey-4-ref.xul
+skip-if(cocoaWidget||Android) != accesskey-4.xul accesskey-4-notref.xul
+skip-if(Android) == align-baseline-1.xul align-baseline-1-ref.xul # test for bug 494901
+skip-if(Android) == setsize.xul setsize-ref.xul
diff --git a/layout/reftests/forms/textbox/setsize-ref.xul b/layout/reftests/forms/textbox/setsize-ref.xul
new file mode 100644
index 000000000..ca0d30e72
--- /dev/null
+++ b/layout/reftests/forms/textbox/setsize-ref.xul
@@ -0,0 +1,9 @@
+<?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">
+
+<hbox style="-moz-appearance: textfield-multiline; width: 200px; height: 200px;"/>
+<html:div style="position:fixed;top:0;left:0;width:100%;height:100%;"></html:div>
+
+</window>
diff --git a/layout/reftests/forms/textbox/setsize.xul b/layout/reftests/forms/textbox/setsize.xul
new file mode 100644
index 000000000..30d2face1
--- /dev/null
+++ b/layout/reftests/forms/textbox/setsize.xul
@@ -0,0 +1,8 @@
+<?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">
+
+<html:textarea style="width: 200px; height: 200px; margin: 0; resize: none;"/>
+<html:div style="position:fixed;top:0;left:0;width:100%;height:100%;"></html:div>
+</window>