From: Ehsan Akhgari Add some reftests for XUL textboxes diff --git a/layout/reftests/editor/reftest.list b/layout/reftests/editor/reftest.list --- a/layout/reftests/editor/reftest.list +++ b/layout/reftests/editor/reftest.list @@ -1,8 +1,11 @@ +# include the XUL reftests +include xul/reftest.list + == newline-1.html newline-ref.html == newline-2.html newline-ref.html == newline-3.html newline-ref.html == dynamic-1.html dynamic-ref.html == passwd-1.html passwd-ref.html != passwd-2.html passwd-ref.html == passwd-3.html passwd-ref.html == passwd-4.html passwd-ref.html diff --git a/layout/reftests/editor/xul/autocomplete-1.xul b/layout/reftests/editor/xul/autocomplete-1.xul new file mode 100644 --- /dev/null +++ b/layout/reftests/editor/xul/autocomplete-1.xul @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/layout/reftests/editor/xul/autocomplete-ref.xul b/layout/reftests/editor/xul/autocomplete-ref.xul new file mode 100644 --- /dev/null +++ b/layout/reftests/editor/xul/autocomplete-ref.xul @@ -0,0 +1,11 @@ + + + + + + + + + diff --git a/layout/reftests/editor/xul/empty-1.xul b/layout/reftests/editor/xul/empty-1.xul new file mode 100644 --- /dev/null +++ b/layout/reftests/editor/xul/empty-1.xul @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/layout/reftests/editor/xul/empty-2.xul b/layout/reftests/editor/xul/empty-2.xul new file mode 100644 --- /dev/null +++ b/layout/reftests/editor/xul/empty-2.xul @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/layout/reftests/editor/xul/empty-ref.xul b/layout/reftests/editor/xul/empty-ref.xul new file mode 100644 --- /dev/null +++ b/layout/reftests/editor/xul/empty-ref.xul @@ -0,0 +1,11 @@ + + + + + + + + + diff --git a/layout/reftests/editor/xul/emptyautocomplete-1.xul b/layout/reftests/editor/xul/emptyautocomplete-1.xul new file mode 100644 --- /dev/null +++ b/layout/reftests/editor/xul/emptyautocomplete-1.xul @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/layout/reftests/editor/xul/emptyautocomplete-ref.xul b/layout/reftests/editor/xul/emptyautocomplete-ref.xul new file mode 100644 --- /dev/null +++ b/layout/reftests/editor/xul/emptyautocomplete-ref.xul @@ -0,0 +1,11 @@ + + + + + + + + + diff --git a/layout/reftests/editor/xul/emptymultiline-1.xul b/layout/reftests/editor/xul/emptymultiline-1.xul new file mode 100644 --- /dev/null +++ b/layout/reftests/editor/xul/emptymultiline-1.xul @@ -0,0 +1,11 @@ + + + + + + + + + diff --git a/layout/reftests/editor/xul/emptymultiline-2.xul b/layout/reftests/editor/xul/emptymultiline-2.xul new file mode 100644 --- /dev/null +++ b/layout/reftests/editor/xul/emptymultiline-2.xul @@ -0,0 +1,11 @@ + + + + + + + + + diff --git a/layout/reftests/editor/xul/emptymultiline-ref.xul b/layout/reftests/editor/xul/emptymultiline-ref.xul new file mode 100644 --- /dev/null +++ b/layout/reftests/editor/xul/emptymultiline-ref.xul @@ -0,0 +1,11 @@ + + + + + + + + + diff --git a/layout/reftests/editor/xul/emptytextbox-1.xul b/layout/reftests/editor/xul/emptytextbox-1.xul new file mode 100644 --- /dev/null +++ b/layout/reftests/editor/xul/emptytextbox-1.xul @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/layout/reftests/editor/xul/emptytextbox-2.xul b/layout/reftests/editor/xul/emptytextbox-2.xul new file mode 100644 --- /dev/null +++ b/layout/reftests/editor/xul/emptytextbox-2.xul @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/layout/reftests/editor/xul/emptytextbox-3.xul b/layout/reftests/editor/xul/emptytextbox-3.xul new file mode 100644 --- /dev/null +++ b/layout/reftests/editor/xul/emptytextbox-3.xul @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/layout/reftests/editor/xul/emptytextbox-4.xul b/layout/reftests/editor/xul/emptytextbox-4.xul new file mode 100644 --- /dev/null +++ b/layout/reftests/editor/xul/emptytextbox-4.xul @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/layout/reftests/editor/xul/emptytextbox-5.xul b/layout/reftests/editor/xul/emptytextbox-5.xul new file mode 100644 --- /dev/null +++ b/layout/reftests/editor/xul/emptytextbox-5.xul @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/layout/reftests/editor/xul/emptytextbox-ref.xul b/layout/reftests/editor/xul/emptytextbox-ref.xul new file mode 100644 --- /dev/null +++ b/layout/reftests/editor/xul/emptytextbox-ref.xul @@ -0,0 +1,11 @@ + + + + + + + + + diff --git a/layout/reftests/editor/xul/input.css b/layout/reftests/editor/xul/input.css new file mode 100644 --- /dev/null +++ b/layout/reftests/editor/xul/input.css @@ -0,0 +1,28 @@ +@namespace url('http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul'); +@namespace html url('http://www.w3.org/1999/xhtml'); + +html|input, html|textarea { + margin: 4px; + padding: 0; +} + +textbox[multiline="true"], html|textarea { + border: none !important; + -moz-appearance: none !important; + -moz-border-radius-topright: 0; + -moz-border-radius-bottomleft: 0; +} + +html|input.ac { + padding: 0 3px; +} + +html|input.empty { + color: graytext; +} + +html|input.num { + text-align: end; + -moz-margin-end: 8px; +} + diff --git a/layout/reftests/editor/xul/number-1.xul b/layout/reftests/editor/xul/number-1.xul new file mode 100644 --- /dev/null +++ b/layout/reftests/editor/xul/number-1.xul @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/layout/reftests/editor/xul/number-2.xul b/layout/reftests/editor/xul/number-2.xul new file mode 100644 --- /dev/null +++ b/layout/reftests/editor/xul/number-2.xul @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/layout/reftests/editor/xul/number-3.xul b/layout/reftests/editor/xul/number-3.xul new file mode 100644 --- /dev/null +++ b/layout/reftests/editor/xul/number-3.xul @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/layout/reftests/editor/xul/number-4.xul b/layout/reftests/editor/xul/number-4.xul new file mode 100644 --- /dev/null +++ b/layout/reftests/editor/xul/number-4.xul @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/layout/reftests/editor/xul/number-5.xul b/layout/reftests/editor/xul/number-5.xul new file mode 100644 --- /dev/null +++ b/layout/reftests/editor/xul/number-5.xul @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/layout/reftests/editor/xul/number-ref.xul b/layout/reftests/editor/xul/number-ref.xul new file mode 100644 --- /dev/null +++ b/layout/reftests/editor/xul/number-ref.xul @@ -0,0 +1,11 @@ + + + + + + + + + diff --git a/layout/reftests/editor/xul/numberwithvalue-1.xul b/layout/reftests/editor/xul/numberwithvalue-1.xul new file mode 100644 --- /dev/null +++ b/layout/reftests/editor/xul/numberwithvalue-1.xul @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/layout/reftests/editor/xul/numberwithvalue-ref.xul b/layout/reftests/editor/xul/numberwithvalue-ref.xul new file mode 100644 --- /dev/null +++ b/layout/reftests/editor/xul/numberwithvalue-ref.xul @@ -0,0 +1,11 @@ + + + + + + + + + diff --git a/layout/reftests/editor/xul/passwd-1.xul b/layout/reftests/editor/xul/passwd-1.xul new file mode 100644 --- /dev/null +++ b/layout/reftests/editor/xul/passwd-1.xul @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/layout/reftests/editor/xul/passwd-2.xul b/layout/reftests/editor/xul/passwd-2.xul new file mode 100644 --- /dev/null +++ b/layout/reftests/editor/xul/passwd-2.xul @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/layout/reftests/editor/xul/passwd-3.xul b/layout/reftests/editor/xul/passwd-3.xul new file mode 100644 --- /dev/null +++ b/layout/reftests/editor/xul/passwd-3.xul @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/layout/reftests/editor/xul/passwd-ref.xul b/layout/reftests/editor/xul/passwd-ref.xul new file mode 100644 --- /dev/null +++ b/layout/reftests/editor/xul/passwd-ref.xul @@ -0,0 +1,11 @@ + + + + + + + + + diff --git a/layout/reftests/editor/xul/plain-1.xul b/layout/reftests/editor/xul/plain-1.xul new file mode 100644 --- /dev/null +++ b/layout/reftests/editor/xul/plain-1.xul @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/layout/reftests/editor/xul/plain-ref.xul b/layout/reftests/editor/xul/plain-ref.xul new file mode 100644 --- /dev/null +++ b/layout/reftests/editor/xul/plain-ref.xul @@ -0,0 +1,11 @@ + + + + + + + test + + diff --git a/layout/reftests/editor/xul/reftest.list b/layout/reftests/editor/xul/reftest.list new file mode 100644 --- /dev/null +++ b/layout/reftests/editor/xul/reftest.list @@ -0,0 +1,24 @@ +== empty-1.xul empty-ref.xul +!= empty-2.xul empty-ref.xul +== autocomplete-1.xul autocomplete-ref.xul +== emptyautocomplete-1.xul emptyautocomplete-ref.xul +!= emptymultiline-1.xul emptymultiline-ref.xul +== emptymultiline-2.xul emptymultiline-ref.xul +== emptytextbox-1.xul emptytextbox-ref.xul +== emptytextbox-2.xul emptytextbox-ref.xul +!= emptytextbox-3.xul emptytextbox-ref.xul +!= emptytextbox-4.xul emptytextbox-ref.xul +== emptytextbox-5.xul emptytextbox-ref.xul +!= number-1.xul number-ref.xul +!= number-2.xul number-ref.xul +== number-3.xul number-ref.xul +!= number-4.xul number-ref.xul +== number-5.xul number-ref.xul +== numberwithvalue-1.xul numberwithvalue-ref.xul +== passwd-1.xul passwd-ref.xul +== passwd-2.xul passwd-ref.xul +!= passwd-3.xul passwd-ref.xul +== plain-1.xul plain-ref.xul +== textbox-1.xul textbox-ref.xul +!= textbox-disabled.xul textbox-ref.xul +!= textbox-readonly.xul textbox-ref.xul diff --git a/layout/reftests/editor/xul/textbox-1.xul b/layout/reftests/editor/xul/textbox-1.xul new file mode 100644 --- /dev/null +++ b/layout/reftests/editor/xul/textbox-1.xul @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/layout/reftests/editor/xul/textbox-disabled.xul b/layout/reftests/editor/xul/textbox-disabled.xul new file mode 100644 --- /dev/null +++ b/layout/reftests/editor/xul/textbox-disabled.xul @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/layout/reftests/editor/xul/textbox-readonly.xul b/layout/reftests/editor/xul/textbox-readonly.xul new file mode 100644 --- /dev/null +++ b/layout/reftests/editor/xul/textbox-readonly.xul @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/layout/reftests/editor/xul/textbox-ref.xul b/layout/reftests/editor/xul/textbox-ref.xul new file mode 100644 --- /dev/null +++ b/layout/reftests/editor/xul/textbox-ref.xul @@ -0,0 +1,11 @@ + + + + + + + + +