From b207cbf64590970ffe792edf3b6cbef32eba2ba2 Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Tue, 25 Apr 2006 04:38:25 +0000 Subject: [PATCH] Adding more testcases git-svn-id: svn://10.0.0.236/trunk@195335 18797224-902f-48f8-a5cc-f745e15eee43 --- .../html/tests/formctls/bugs/bug17474-1.html | 33 +++++++++++++ .../html/tests/formctls/bugs/bug17474-2.html | 44 +++++++++++++++++ .../html/tests/formctls/bugs/bug17474-3.html | 49 +++++++++++++++++++ .../html/tests/formctls/bugs/bug180085-1.html | 18 +++++++ .../html/tests/formctls/bugs/bug180085-2.html | 18 +++++++ .../html/tests/formctls/bugs/bug180085-3.html | 16 ++++++ .../html/tests/formctls/bugs/bug180085-4.html | 34 +++++++++++++ .../html/tests/formctls/bugs/bug231574.html | 14 ++++++ .../layout/html/tests/formctls/bugs/rtest.lst | 8 +++ 9 files changed, 234 insertions(+) create mode 100644 mozilla/layout/html/tests/formctls/bugs/bug17474-1.html create mode 100644 mozilla/layout/html/tests/formctls/bugs/bug17474-2.html create mode 100644 mozilla/layout/html/tests/formctls/bugs/bug17474-3.html create mode 100644 mozilla/layout/html/tests/formctls/bugs/bug180085-1.html create mode 100644 mozilla/layout/html/tests/formctls/bugs/bug180085-2.html create mode 100644 mozilla/layout/html/tests/formctls/bugs/bug180085-3.html create mode 100644 mozilla/layout/html/tests/formctls/bugs/bug180085-4.html create mode 100644 mozilla/layout/html/tests/formctls/bugs/bug231574.html diff --git a/mozilla/layout/html/tests/formctls/bugs/bug17474-1.html b/mozilla/layout/html/tests/formctls/bugs/bug17474-1.html new file mode 100644 index 00000000000..b00479dc6e9 --- /dev/null +++ b/mozilla/layout/html/tests/formctls/bugs/bug17474-1.html @@ -0,0 +1,33 @@ + + +
+
200px wide

+This button should be 200x60
+ +
+
+
100x21

+This button should be 100x21
+ +
+
+This button should be 100x21
+ +
+
+
200px wide

+This button should be 200x60
+ +
+
+
100x21

+This button should be 100x21
+ +
+
+This button should be 100x21
+ +
+
+ + diff --git a/mozilla/layout/html/tests/formctls/bugs/bug17474-2.html b/mozilla/layout/html/tests/formctls/bugs/bug17474-2.html new file mode 100644 index 00000000000..f1869743c9f --- /dev/null +++ b/mozilla/layout/html/tests/formctls/bugs/bug17474-2.html @@ -0,0 +1,44 @@ + + +
+This is a normal button with no CSS sizing,
+on Windows this sizes to 66x27:
+ +
+On Windows this should be sizing to 84x24
+here is a div that emulates it:
+
+
Press Me
+
+
+
+
200px wide

+This button should be 200x60
+ +
+
+
100x21

+This button should be 100x21
+ +
+
+This button should be 100x21
+ +
+
+
200px wide

+This button should be 200x60
+ +
+
+
100x21

+This button should be 100x21
+ +
+
+This button should be 100x21
+ +
+
+ + diff --git a/mozilla/layout/html/tests/formctls/bugs/bug17474-3.html b/mozilla/layout/html/tests/formctls/bugs/bug17474-3.html new file mode 100644 index 00000000000..f1e9bec87c1 --- /dev/null +++ b/mozilla/layout/html/tests/formctls/bugs/bug17474-3.html @@ -0,0 +1,49 @@ + + +CSS sizing of INPUT wrong if other attributes present + + +

CSS sizing of INPUT wrong if other attributes present

+ +

This is an operational as well as a cosmentic defect: click in the yellow rectangles below +and type in a "j" to see the descender cut off - it looks like the text inside the +<input> is normal sized, but the <input> is too small. +

+ +

+All of these coloured rectangles are <input> elements using the style attribute to set +the background CSS property and their size.
+The <input> elements have a border in the table even though the table has border="0".
+The yellow <input> element is too small (type=text). The equivalent sized in px is okay.
+The green <input> elements are too large (size=1). +

+ + + + + + + + + + + + + + + + + + + +
1em by 1em; red; border 1px; margin 0 16px by 16px; red; border 1px; margin 0
1em by 1em; yellow; border 1px; margin 0 - type=text size=1 16px by 16px; red; border 1px; margin 0 - type=text size=1
1em by 1em; yellow; border 1px; margin 0 - type=text value="j" size=1 16px by 16px; red; border 1px; margin 0 - type=text value="j" size=1
1em by 1em; green; border 1px; margin 0 - size=1 16px by 16px; green; border 1px; margin 0 - size=1
+ + +

+It seems not to matter whether the <input> elements appear in a <table> or not, +or in a <form> or not.

+ + + + + diff --git a/mozilla/layout/html/tests/formctls/bugs/bug180085-1.html b/mozilla/layout/html/tests/formctls/bugs/bug180085-1.html new file mode 100644 index 00000000000..ceb577a4ea2 --- /dev/null +++ b/mozilla/layout/html/tests/formctls/bugs/bug180085-1.html @@ -0,0 +1,18 @@ + + + + + Untitled + + + +
+ +
+ + + diff --git a/mozilla/layout/html/tests/formctls/bugs/bug180085-2.html b/mozilla/layout/html/tests/formctls/bugs/bug180085-2.html new file mode 100644 index 00000000000..4d9ffab6fd5 --- /dev/null +++ b/mozilla/layout/html/tests/formctls/bugs/bug180085-2.html @@ -0,0 +1,18 @@ + + + + + Untitled + + + +
+ +
+ + + diff --git a/mozilla/layout/html/tests/formctls/bugs/bug180085-3.html b/mozilla/layout/html/tests/formctls/bugs/bug180085-3.html new file mode 100644 index 00000000000..dc29c357b3a --- /dev/null +++ b/mozilla/layout/html/tests/formctls/bugs/bug180085-3.html @@ -0,0 +1,16 @@ + + + input problem + + +
+ +
+
+
+
+
+
+ + + diff --git a/mozilla/layout/html/tests/formctls/bugs/bug180085-4.html b/mozilla/layout/html/tests/formctls/bugs/bug180085-4.html new file mode 100644 index 00000000000..03ef7ecf09f --- /dev/null +++ b/mozilla/layout/html/tests/formctls/bugs/bug180085-4.html @@ -0,0 +1,34 @@ + + + input problem + + +
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + diff --git a/mozilla/layout/html/tests/formctls/bugs/bug231574.html b/mozilla/layout/html/tests/formctls/bugs/bug231574.html new file mode 100644 index 00000000000..d1b158a6b07 --- /dev/null +++ b/mozilla/layout/html/tests/formctls/bugs/bug231574.html @@ -0,0 +1,14 @@ + + + Bug 231574 testcase + + +
+ + + + +
+ + + diff --git a/mozilla/layout/html/tests/formctls/bugs/rtest.lst b/mozilla/layout/html/tests/formctls/bugs/rtest.lst index bc459efe77c..2ccc2d9943c 100644 --- a/mozilla/layout/html/tests/formctls/bugs/rtest.lst +++ b/mozilla/layout/html/tests/formctls/bugs/rtest.lst @@ -8,9 +8,17 @@ bug117606.html bug138403-1.html bug138403-2.html bug17450.html +bug17474-1.html +bug17474-2.html +bug17474-3.html +bug180085-1.html +bug180085-2.html +bug180085-3.html +bug180085-4.html bug20322.html bug222864.html bug22708.html +bug231574.html bug26644.html bug26650.html bug28598.html