From 9774e2e9c5d237673e105a6bc51ae7f4cba3fe7c Mon Sep 17 00:00:00 2001 From: "dbaron%fas.harvard.edu" Date: Sun, 15 Dec 2002 01:47:10 +0000 Subject: [PATCH] Add testcases for 134580 and 155333. --- layout/html/tests/block/bugs/134580-1.html | 105 +++++++++++++++++++++ layout/html/tests/block/bugs/134580-2.html | 29 ++++++ layout/html/tests/block/bugs/155333-1.html | 3 + layout/html/tests/block/bugs/155333-2.html | 2 + layout/html/tests/block/bugs/file_list.txt | 4 + 5 files changed, 143 insertions(+) create mode 100644 layout/html/tests/block/bugs/134580-1.html create mode 100644 layout/html/tests/block/bugs/134580-2.html create mode 100644 layout/html/tests/block/bugs/155333-1.html create mode 100644 layout/html/tests/block/bugs/155333-2.html diff --git a/layout/html/tests/block/bugs/134580-1.html b/layout/html/tests/block/bugs/134580-1.html new file mode 100644 index 000000000000..858c6eacdd96 --- /dev/null +++ b/layout/html/tests/block/bugs/134580-1.html @@ -0,0 +1,105 @@ +Testcase, bug 134580 + +

Testcases where whitespace a single text node

+ +Leading and trailing whitespace: +
+ +Only leading whitespace: +
+ +Only trailing whitespace: +
+ +A pair of images with whitespace between only: +
+ +A pair of images with no whitespace: +
+ +Text with no whitespace: +
Text
+Text with leading whitespace: +
Text
+Text with trailing whitespace: +
Text
+Text with intermediate whitespace: +
Text Text
+ +

Testcases where whitespace is two text nodes separated by comments

+ +Leading and trailing whitespace: +
+ +Only leading whitespace: +
+ +Only trailing whitespace: +
+ +A pair of images with whitespace between only: +
+ +A pair of images with no whitespace: +
+ +Text with no whitespace: +
Text
+Text with leading whitespace: +
Text
+Text with trailing whitespace: +
Text
+Text with intermediate whitespace: +
Text Text
+ +

Testcases where whitespace a single text node

+ +

Leading and trailing whitespace: +



+ +

Only leading whitespace: +



+ +

Only trailing whitespace: +



+ +

A pair of images with whitespace between only: +



+ +

A pair of images with no whitespace: +



+ +

Text with no whitespace: +

Text

+

Text with leading whitespace: +

Text

+

Text with trailing whitespace: +

Text

+

Text with intermediate whitespace: +

Text Text

+ +

Testcases where whitespace is two text nodes separated by comments

+ +

Leading and trailing whitespace: +



+ +

Only leading whitespace: +



+ +

Only trailing whitespace: +



+ +

A pair of images with whitespace between only: +



+ +

A pair of images with no whitespace: +



+ +

Text with no whitespace: +

Text

+

Text with leading whitespace: +

Text

+

Text with trailing whitespace: +

Text

+

Text with intermediate whitespace: +

Text Text

diff --git a/layout/html/tests/block/bugs/134580-2.html b/layout/html/tests/block/bugs/134580-2.html new file mode 100644 index 000000000000..04c1dd4b8fba --- /dev/null +++ b/layout/html/tests/block/bugs/134580-2.html @@ -0,0 +1,29 @@ +Testcase, bug 134580 + +

Testcases where whitespace a single text node and td has explicit span

+ +Leading and trailing whitespace: +
+ +Only leading whitespace: +
+ +Only trailing whitespace: +
+ +A pair of images with whitespace between only: +
+ +A pair of images with no whitespace: +
+ + +

A few more

+ +

Text with initial whitespace containing a span: +

TextText

+ + +

Text with initial whitespace containing a span: +

TextText

+ diff --git a/layout/html/tests/block/bugs/155333-1.html b/layout/html/tests/block/bugs/155333-1.html new file mode 100644 index 000000000000..840024ae3df2 --- /dev/null +++ b/layout/html/tests/block/bugs/155333-1.html @@ -0,0 +1,3 @@ + +Testcase bug 155333 +Foo
Bar
Baz
diff --git a/layout/html/tests/block/bugs/155333-2.html b/layout/html/tests/block/bugs/155333-2.html new file mode 100644 index 000000000000..3fac6728293a --- /dev/null +++ b/layout/html/tests/block/bugs/155333-2.html @@ -0,0 +1,2 @@ +Testcase bug 155333 +foo
bar
baz
diff --git a/layout/html/tests/block/bugs/file_list.txt b/layout/html/tests/block/bugs/file_list.txt index 5421bce5b75b..3e808b8032ad 100644 --- a/layout/html/tests/block/bugs/file_list.txt +++ b/layout/html/tests/block/bugs/file_list.txt @@ -191,8 +191,12 @@ file:///s:/mozilla/layout/html/tests/block/bugs/124637.html file:///s:/mozilla/layout/html/tests/block/bugs/125506.html file:///s:/mozilla/layout/html/tests/block/bugs/126213-1.html file:///s:/mozilla/layout/html/tests/block/bugs/126213-2.html +file:///s:/mozilla/layout/html/tests/block/bugs/134580-1.html +file:///s:/mozilla/layout/html/tests/block/bugs/134580-2.html file:///s:/mozilla/layout/html/tests/block/bugs/148245.html file:///s:/mozilla/layout/html/tests/block/bugs/151620.html +file:///s:/mozilla/layout/html/tests/block/bugs/155333-1.html +file:///s:/mozilla/layout/html/tests/block/bugs/155333-2.html file:///s:/mozilla/layout/html/tests/block/bugs/154741.html file:///s:/mozilla/layout/html/tests/block/bugs/161644.html file:///s:/mozilla/layout/html/tests/block/bugs/169620.html