From 9330f3cc8b783b337a657f1fe6b18e915aaef093 Mon Sep 17 00:00:00 2001 From: "karnaze%netscape.com" Date: Mon, 26 Jul 1999 16:18:49 +0000 Subject: [PATCH] new regression tests git-svn-id: svn://10.0.0.236/trunk@41143 18797224-902f-48f8-a5cc-f745e15eee43 --- .../html/tests/table/core/col_span.html | 33 +- .../html/tests/table/core/col_span2.html | 494 ++++++++++++++++++ .../html/tests/table/core/col_widths2.html | 398 ++++++++++++++ .../layout/html/tests/table/core/columns.html | 120 +++++ .../html/tests/table/core/conflicts.html | 151 ++++++ .../html/tests/table/core/file_list.txt | 7 + .../layout/html/tests/table/core/misc.html | 26 + .../html/tests/table/core/row_span.html | 87 +++ 8 files changed, 1297 insertions(+), 19 deletions(-) create mode 100644 mozilla/layout/html/tests/table/core/col_span2.html create mode 100644 mozilla/layout/html/tests/table/core/col_widths2.html create mode 100644 mozilla/layout/html/tests/table/core/columns.html create mode 100644 mozilla/layout/html/tests/table/core/conflicts.html create mode 100644 mozilla/layout/html/tests/table/core/misc.html create mode 100644 mozilla/layout/html/tests/table/core/row_span.html diff --git a/mozilla/layout/html/tests/table/core/col_span.html b/mozilla/layout/html/tests/table/core/col_span.html index cbb76871eb9..076f62f5c6e 100644 --- a/mozilla/layout/html/tests/table/core/col_span.html +++ b/mozilla/layout/html/tests/table/core/col_span.html @@ -1,27 +1,24 @@ - - + + + + + + + +
100no width givena percent width
500 colspan=3
+
- + - + + + +
foo no width givena percent width
30% width
foo
200 spans col 1-2last cell
first cell300 spans col 2-3

- - - - - - - - - - -
foono width givena percent width
spans col 1-2last cell
first cellspans col 2-3
-
- @@ -29,7 +26,6 @@
fooooo oooooo oooooo oooooo oooooo

- @@ -44,7 +40,6 @@

This is colspan=2


-
diff --git a/mozilla/layout/html/tests/table/core/col_span2.html b/mozilla/layout/html/tests/table/core/col_span2.html new file mode 100644 index 00000000000..5906c05ee96 --- /dev/null +++ b/mozilla/layout/html/tests/table/core/col_span2.html @@ -0,0 +1,494 @@ +this fixes a bug +
+ + + + + + + + + + + + + +
xxxxxxxxxxxxy
xxxy
xyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
+
+ + + + + + +
xxxxxxxxxx
xxxx
+
+ + + + + + + + + + + + + + + +
xxxxxxy
xxxy
xxyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
+
+ + + + + + + + + + + + + + +
xxxxxxy
xxxy
xyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
+
+ + + + + + + + + + + + + + +
yyyyyyyyyyyyyyyyyy
xxxy
xyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
+
+ + + + + + + + +
xxxxxxxxxxxxxxxxx
foobarzap
+
+ + + + + + + + +
xxxxxxxxxxxxxxxxx
foobarzap
+
+ + + + + + + + +
xxxxxxxxxxxxxxxxx
foobarzap
+
+
+ + + + + + + +
5050auto
200CS3
+
+
+ + + + + + +
50auto
200CS2
+
+ + + + + + +
foofoo
foo
+
+ + + + + + + +
foo
foo + bar + foo + bar
+fixed table - spanned cols based on fix widths +
+
+ + + + + + + + +
400CS2100
100300auto
+
+ + + + + + + + +
auto auto auto auto auto auto auto100
autoauto autoauto
+
+ + + + + + + + +
auto auto auto auto auto auto auto100
100auto autoauto
+
+ + + + + + + + +
auto auto auto auto auto auto auto100
100auto auto autoauto
+
+ + + + + + + + +
auto auto auto auto auto auto auto100
100auto auto auto auto autoauto
+
+ + + + + + + + +
auto auto auto auto auto auto auto100
100 100 100 100auto auto auto autoauto
+
+ + + + + + + + +
auto auto auto auto auto auto auto100
100 100 100 100auto auto auto autoauto
+
+ + + + + + + + +
80% 80% 80% 80% 80% 80%auto
100autoauto
+
+ + + + + + + + +
80% 80% 80% 80% 80% 80%auto
100300auto
+
+ + + + + + + + +
80% 80% 80% 80% 80% 80%auto
33%66%auto
+ + + + + + + + +
30% 30% 30% 30% 30% 30%auto
33% 33% 33% 33% 33% 33% 33%66%auto
+
+PERCENT COLSPANS +
+ + + + + + + + +
90% 80% 80% 80% 80% 80%auto
10%66%auto
+
+ + + + + + + + +
90% 80% 80% 80% 80% 80%auto
33% 33% 33% 33% 33% 33% 33%66%auto
+
+ + + + + + + + +
90% 80% 80% 80% 80% 80%auto
66%66% 66% 66% 66% 66% 66% auto
+
+ + + + + + + + + +
90% 90% 90% auto
autoauto-autoauto auto autoauto auto auto
+
+ + + + + + + + + + + +
90% 90% 90% auto
autoautoauto
auto90% 90% 90%
+
+ + + + + + + + + + + +
90% 90% 90% auto
autoauto60%
auto90% 90% 90%
+
+ + + + + + + + + + + +
90% 90% 90% 60%
autoautoauto
auto90% 90% 90%
+
+ + + + + + + + +
90% 80% 80% 80% 80% 80%auto
66%66% 66% 66% 66% 66% 66% 50%
+
+ + + + + + + + +
90% 80% 80% 80% 80% 80%auto
autoauto auto50%
+
+ + + + + + + + +
90% 90% 90% 90% 90% 90%auto
autoauto-auto50%
+
+ + + + + + + + +
90% 90% 90% 90% 90% 90%auto
60%auto-auto50%
+
+ + + + + + + + +
90% 90% 90% 90% 90% 90%auto
5% 5% 5%auto-auto50%
+
+ + + + + + + + +
90% 90% 90% 90% 90% 90%auto
5%10%auto
+
+ + + + + + + + +
90% 90% 90% 90% 90% 90%auto
1020auto
+
+ + + + + + + + +
50% 50% 50% 50% 50%auto
80%auto auto50%
+
+ + + + + + + + +
90% 50% 50% 50% 50%auto
100auto auto autoauto
+
+
+
+ + + + + + +
foo
foo + bar + foo + bar
+
+ +1st cell with colspan=3 fixed at 600, 1st 2 cells in 2nd row fixed at 100, 2nd not + + + + + + +
foofoo
foo + bar + foo + bar
+
+ + + + + + +
foo
+
+ + + + + + +
foobar
foobar
+ +
+ + + + + + +
edit
Top Stories from Reuters Jun 11 12:30pm 
+
+ + + + +
foo + + + +
bar
+ + +
+ + + + +
autoauto
diff --git a/mozilla/layout/html/tests/table/core/col_widths2.html b/mozilla/layout/html/tests/table/core/col_widths2.html new file mode 100644 index 00000000000..020da855a11 --- /dev/null +++ b/mozilla/layout/html/tests/table/core/col_widths2.html @@ -0,0 +1,398 @@ +fixed table - fixed cells are increased based on fixed width + + + + +
foofoo foo foo foo foo foo foo foo
+
+ +fixed table - percentage width cell is honored to min + + + + +
foofoo
+
+ +fixed table - percentage width cell honored to min + + + + +
foofoo
+
+ +fixed table - 0 percentage width cell is not honored to min + + + + +
foofoo
+
+ +fixed table - too small a percentage width cell is honored to min + + + + +
foofoo
+
+fixed table - too small a percentage width col is honored to min + + + + + +
foofoo
+
+percentage cols allocated left to right like IE 5 + + + + + + + + +
foofoofoo
+
+excess above min allocated based on fixed widths (not min) + + + + +
foo foofoo
+
+excess above min allocated based on fixed widths (not min) + + + + +
foo foofoo
+
+auto table - fixed width cell does not exceed viewport + + + +
foo
+
+auto table - fixed cells cannot exceed viewport + + + + + + + + +
200px200px200px200px200px
+
+auto table - cell width does not include padding + + + +
cell=100px
+ + + +
cell=100px
+fixed table - percentage cell width includes padding + + + + +
cell=50%cell=auto
+ + + + +
cell=50%cell=auto
+table with no cells doesn't show up BEFORE + +
+after +
+ +auto table - % width single cell has no effect (not so in IE5) + + + +
10% 10%
+
+auto table - % width cell increases table width based on % cell + + + + +
10% 10%auto
+
+auto table - % width cell increases table width based on % cell + + + + +
10%auto
+
+auto table - % width cell increases table width based on % cell which makes it largest + + + + + +
10%1%auto
+
+auto table - % width cell increases table width based on % cell which makes it largest + + + + + +
1%10%20px
+
+auto table - % width cell increases table width based on % cell which makes it largest. +Nav4.x does not increase the table too much if the only cells are % + + + + +
1%10%
+
+auto table - % width col increases table width based on % col + + + + + +
10pColauto
+
+fixed table - % width col allocated before fixed + + + + + +
50%Col20px
+
+auto table - % width col increases table width based on % col + + + + + +
10%Col20px
+
+
+fixed table - percentage cells allocated left to rigth first + + + + + +
100px 100px50%50%
+
+fixed table - percentage cells allocated left to rigth first +allocated from left to right + + + + + +
100px 100px95%95%
+
+fixed table - percentage cells allocated left to rigth first + + + + +
100px 100px50%
+
+fixed table - percentage cells allocated left to right first + + + + + +
100px 100px50% 50% 50%50% 50% 50%
+
+fixed table - percentage cells allocated left to right first + + + + + + +
100px 100px100px 100px50% 50% 50%50% 50% 50%
+
+fixed table - percentage cells allocated left to right first + + + + + + + +
100px 100px100px 100px50% 50% 50%50% 50% 50%50% 50% 50%
+
+fixed table - % cols/cells allocated left to right + + + + + + +
90%Col90%Cell90%Cell
+
+
+fixed table - fixed cells get expanded in Quirks mode, not in Standard + + + + +
100px 100px 100pxauto auto
+
+fixed table - % cells don't get expanded + + + + + +
25%25%auto
+
+auto table - fixed cells honored + + + + +
100px 100pxauto
+
+fixed table - % cells are honored + + + + +
50% 50% 50%auto
+ + + + + + +
foobarzap
+
+ + + + + + +
foobarzap
+
+ + + +
foo
+
+ + + + +
foofoo
+
+
+table fixed at 600, 1st 2 cells fixed at 100, 2nd not + + + +
foo + bar + foo
+
+col width=200, td width=100 + + + + +
foo
+
+col width=100, td width=200 + + + + +
foo
+
+col width=200 + + + + +
foo
+
+ + + + +
foo
+
+ + + +
foo
+
+ + + + + + +
foo
foo + bar + foo + bar
+
+ + + + + + + + +
auto100
100300auto
+
+table fixed at 600, 1st 2 cells fixed at 100, 2nd not + + + +
foo + bar + foo
+
+ +table fixed at 600, 1st 2 cells fixed at 50, 2nd not + + + +
foo + bar + foo
+
+ +table fixed at 600, 1st 2 cells fixed at 1000, 2nd not + + + +
foo + bar + foo
+
+ +table fixed at 600, 1st 2 cells fixed at 5, 2nd not + + + +
foo + bar + foo
+
+ diff --git a/mozilla/layout/html/tests/table/core/columns.html b/mozilla/layout/html/tests/table/core/columns.html new file mode 100644 index 00000000000..a7e543b02fb --- /dev/null +++ b/mozilla/layout/html/tests/table/core/columns.html @@ -0,0 +1,120 @@ +auto table cols=2 + + + + + +
auto auto auto auto auto auto auto auto auto-auto auto auto auto auto auto auto
+
+auto table cols=2 + + + + + +
autoauto-autoauto auto auto
+
+auto table 2 cols with 1*,1* + + + + + + + +
autoauto-autoauto auto auto
+
+auto table 2 cols with 2*,1* + + + + + + + +
autoauto-autoauto auto auto
+
+fixed table cols=2 + + + + + +
autoauto-autoauto auto auto
+
+auto table cols=3 + + + + + +
autoauto-autoauto auto auto
+
+fixed table cols=3 + + + + + +
autoauto-autoauto auto auto
+
+auto table cols=3 + + + + + +
200auto-autoauto auto auto
+
+fixed table cols=3 + + + + + +
200auto-autoauto auto auto
+
+auto table cols=2 + + + + + +
autoauto-auto200
+
+fixed table cols=2 + + + + + +
autoauto-auto200
+auto table + + + + +
0 0 0 0auto
+
+auto table + + + + +
0% 0% 0% 0%auto
+
+auto table + + + + + +
0* colauto
+
+fixed table + + + + + +
0* colauto
diff --git a/mozilla/layout/html/tests/table/core/conflicts.html b/mozilla/layout/html/tests/table/core/conflicts.html new file mode 100644 index 00000000000..61740b796d5 --- /dev/null +++ b/mozilla/layout/html/tests/table/core/conflicts.html @@ -0,0 +1,151 @@ +fixed table - width on td overriden + + + + +
foofoo
+
+
+fixed table - percent cell wins over fix cell (and in IE5) + + + + + + + +
20pxauto
50%auto
+
+fixed table - percent cell wins over fix cell (and in IE5) + + + + + + + +
100auto
10%auto
+
+fixed table - percent cell wins over fix cell (and in IE5) + + + + + + + + +
50%Col,20%Cellauto
autoauto
+
+fixed table - percent cell wins over fix cell (and in IE5) + + + + + + + + +
20%Col,50%Cellauto
autoauto
+
+fixed table - percent cell wins over fix cell (and in IE5) + + + + + + + + +
50PerCol,100Cellauto
autoauto
+
+fixed table - percent cell wins over fix cell (and in IE5) + + + + + + + + +
20PerCol,300Cellauto
autoauto
+
+fixed table - % wins over fixed even on colspan + + + + + + + +
50CS2auto
50%CS2auto
+
+fixed table - % wins over fixed even on colspan + + + + + + + +
100CS2bar
30%CS2bar
+
+auto table - percent colspan wins over fixed colspan XXX + + + + + + + +
500CS2atuo
10%CS2auto
+
+auto table - percent colspan wins over fixed colspan + + + + + + + + + + + +
500CS2auto
20%CS2auto
autoautoauto
+
+auto table - percent colspan wins over fixed colspan + + + + + + + + + + + +
200CS2auto
20%CS2auto
autoautoauto
+
+auto table - percent colspan wins over fixed colspan + + + + + + + + + + + +
1000CS2auto
20%CS2auto
autoautoauto
+
+percent cell/col percentage conflict goes to cell (and in IE5) + + + + + +
30%-80%colauto
diff --git a/mozilla/layout/html/tests/table/core/file_list.txt b/mozilla/layout/html/tests/table/core/file_list.txt index 9a06c1d5a50..18129095123 100644 --- a/mozilla/layout/html/tests/table/core/file_list.txt +++ b/mozilla/layout/html/tests/table/core/file_list.txt @@ -2,3 +2,10 @@ file://s:/mozilla/layout/html/tests/table/core/backgrounds.html file://s:/mozilla/layout/html/tests/table/core/one_row.html file://s:/mozilla/layout/html/tests/table/core/col_span.html file://s:/mozilla/layout/html/tests/table/core/col_widths.html +file://s:/mozilla/layout/html/tests/table/core/conflicts.html +file://s:/mozilla/layout/html/tests/table/core/columns.html +file://s:/mozilla/layout/html/tests/table/core/col_widths2.html +file://s:/mozilla/layout/html/tests/table/core/misc.html +file://s:/mozilla/layout/html/tests/table/core/row_span.html +file://s:/mozilla/layout/html/tests/table/core/col_span2.html + diff --git a/mozilla/layout/html/tests/table/core/misc.html b/mozilla/layout/html/tests/table/core/misc.html new file mode 100644 index 00000000000..c04c05b2753 --- /dev/null +++ b/mozilla/layout/html/tests/table/core/misc.html @@ -0,0 +1,26 @@ +cell split with color (standard mode) + + + + + +
foo
+
+
+ + + + + + + + + +
+ + diff --git a/mozilla/layout/html/tests/table/core/row_span.html b/mozilla/layout/html/tests/table/core/row_span.html new file mode 100644 index 00000000000..6c5b996cba2 --- /dev/null +++ b/mozilla/layout/html/tests/table/core/row_span.html @@ -0,0 +1,87 @@ +ROWSPANS +
+ +
+ [Click Here]Hassle-Free Upgrades
x
+ + + + + + + + +
auto1auto2
auto3auto4
+ + + + + + + + + + + + + + + +
c0r[2-6],Data 2 span=3 rowsc0r2c1r2
c0r3c1r3
c0r4c1r4
+ + c0r[2-6],Data 2 span=5 rows + c0r2 + c1r2 + + + c0r3 + c1r3 + + + c0r4 + c1r4 + + + c0r5 + c1r5 + + + c0r6 + c1r6 + + + c0r[7-9] span=3 rows + c0r7 + c1r7 + + + c0r8 + c1r8 + + + c0r9 + c1r9 + + +
+ + + + + + +
onetwo
three
+ + + + + + +
foo
bar
+
+ + + + + + +
+
xxx
+