summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2008-12-27 00:29:04 (GMT)
committer Michael Drake <tlsa@netsurf-browser.org>2008-12-27 00:29:04 (GMT)
commitbaaa2bd8825aab34e5d34c12c050ba4e4656e501 (patch)
tree5940bc681e54faa71d23f2b0404f0973c3fcbcb8
parentf6a728203f7cbed67616c132d74caf96f4805032 (diff)
downloadnetsurftest-baaa2bd8825aab34e5d34c12c050ba4e4656e501.tar.gz
netsurftest-baaa2bd8825aab34e5d34c12c050ba4e4656e501.tar.bz2
Add test cases for default page margin and body/html background plotting test cases.
svn path=/trunk/netsurftest/; revision=5929
-rw-r--r--images/blue.pngbin0 -> 46182 bytes
-rw-r--r--images/red.pngbin0 -> 54219 bytes
-rw-r--r--works/body-margin-padding-bgimage-test.html13
-rw-r--r--works/default-page-margin--no-body-margin-test.html13
-rw-r--r--works/default-page-margin--no-body-padding-test.html13
-rw-r--r--works/default-page-margin--no-html-margin-test.html13
-rw-r--r--works/default-page-margin--no-html-padding-test.html13
-rw-r--r--works/default-page-margin--test.html12
-rw-r--r--works/html-body-margin-padding-test.html14
-rw-r--r--works/html-margin-body-margin-padding-test.html14
-rw-r--r--works/html-margin-padding-bgimage-body-margin-padding-bgimage-test.html14
-rw-r--r--works/html-margin-padding-bgimage-test.html13
-rw-r--r--works/html-margin-padding-body-margin-padding-test.html14
-rw-r--r--works/html-padding-body-margin-padding-test.html14
14 files changed, 160 insertions, 0 deletions
diff --git a/images/blue.png b/images/blue.png
new file mode 100644
index 0000000..42569aa
--- a/dev/null
+++ b/images/blue.png
Binary files differ
diff --git a/images/red.png b/images/red.png
new file mode 100644
index 0000000..4b7df64
--- a/dev/null
+++ b/images/red.png
Binary files differ
diff --git a/works/body-margin-padding-bgimage-test.html b/works/body-margin-padding-bgimage-test.html
new file mode 100644
index 0000000..d40b565
--- a/dev/null
+++ b/works/body-margin-padding-bgimage-test.html
@@ -0,0 +1,13 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+<style>
+body {margin:2em;padding:2em;border:1px solid blue;background:url(../images/blue.png) #aaf;}
+h1 {background: #fbf;margin:0;}
+</style>
+</head>
+<body>
+<h1>Background test</h1>
+</body>
+</html> \ No newline at end of file
diff --git a/works/default-page-margin--no-body-margin-test.html b/works/default-page-margin--no-body-margin-test.html
new file mode 100644
index 0000000..815d9ad
--- a/dev/null
+++ b/works/default-page-margin--no-body-margin-test.html
@@ -0,0 +1,13 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+<style>
+body {margin:0;}
+h1 {background: #fbf;margin:0;}
+</style>
+</head>
+<body>
+<h1>Background test</h1>
+</body>
+</html> \ No newline at end of file
diff --git a/works/default-page-margin--no-body-padding-test.html b/works/default-page-margin--no-body-padding-test.html
new file mode 100644
index 0000000..04c08db
--- a/dev/null
+++ b/works/default-page-margin--no-body-padding-test.html
@@ -0,0 +1,13 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+<style>
+body {padding:0;}
+h1 {background: #fbf;margin:0;}
+</style>
+</head>
+<body>
+<h1>Background test</h1>
+</body>
+</html> \ No newline at end of file
diff --git a/works/default-page-margin--no-html-margin-test.html b/works/default-page-margin--no-html-margin-test.html
new file mode 100644
index 0000000..933b13c
--- a/dev/null
+++ b/works/default-page-margin--no-html-margin-test.html
@@ -0,0 +1,13 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+<style>
+html {margin:0;}
+h1 {background: #fbf;margin:0;}
+</style>
+</head>
+<body>
+<h1>Background test</h1>
+</body>
+</html> \ No newline at end of file
diff --git a/works/default-page-margin--no-html-padding-test.html b/works/default-page-margin--no-html-padding-test.html
new file mode 100644
index 0000000..c3ca659
--- a/dev/null
+++ b/works/default-page-margin--no-html-padding-test.html
@@ -0,0 +1,13 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+<style>
+html {padding:0;}
+h1 {background: #fbf;margin:0;}
+</style>
+</head>
+<body>
+<h1>Background test</h1>
+</body>
+</html> \ No newline at end of file
diff --git a/works/default-page-margin--test.html b/works/default-page-margin--test.html
new file mode 100644
index 0000000..c5d300f
--- a/dev/null
+++ b/works/default-page-margin--test.html
@@ -0,0 +1,12 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+<style>
+h1 {background: #fbf;margin:0;}
+</style>
+</head>
+<body>
+<h1>Background test</h1>
+</body>
+</html> \ No newline at end of file
diff --git a/works/html-body-margin-padding-test.html b/works/html-body-margin-padding-test.html
new file mode 100644
index 0000000..7c25569
--- a/dev/null
+++ b/works/html-body-margin-padding-test.html
@@ -0,0 +1,14 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+<style>
+html {background:#faa;}
+body {margin:2em;padding:2em;border:1px solid blue;background:#aaf;}
+h1 {background: #fbf;margin:0;}
+</style>
+</head>
+<body>
+<h1>Background test</h1>
+</body>
+</html> \ No newline at end of file
diff --git a/works/html-margin-body-margin-padding-test.html b/works/html-margin-body-margin-padding-test.html
new file mode 100644
index 0000000..9674ee4
--- a/dev/null
+++ b/works/html-margin-body-margin-padding-test.html
@@ -0,0 +1,14 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+<style>
+html {margin:2em;padding:0;background:#faa;}
+body {margin:2em;padding:2em;border:1px solid blue;background:#aaf;}
+h1 {background: #fbf;margin:0;}
+</style>
+</head>
+<body>
+<h1>Background test</h1>
+</body>
+</html> \ No newline at end of file
diff --git a/works/html-margin-padding-bgimage-body-margin-padding-bgimage-test.html b/works/html-margin-padding-bgimage-body-margin-padding-bgimage-test.html
new file mode 100644
index 0000000..44a3772
--- a/dev/null
+++ b/works/html-margin-padding-bgimage-body-margin-padding-bgimage-test.html
@@ -0,0 +1,14 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+<style>
+html {margin:2em;padding:2em;border:1px solid red;background:url(../images/red.png) #faa;}
+body {margin:2em;padding:2em;border:1px solid blue;background:url(../images/blue.png) #aaf;}
+h1 {background: #fbf;margin:0;}
+</style>
+</head>
+<body>
+<h1>Background test</h1>
+</body>
+</html> \ No newline at end of file
diff --git a/works/html-margin-padding-bgimage-test.html b/works/html-margin-padding-bgimage-test.html
new file mode 100644
index 0000000..20ac161
--- a/dev/null
+++ b/works/html-margin-padding-bgimage-test.html
@@ -0,0 +1,13 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+<style>
+html {margin:2em;padding:2em;border:1px solid red;background:url(../images/red.png) #faa;}body{margin:0;padding:0;}
+h1 {background: #fbf;margin:0;}
+</style>
+</head>
+<body>
+<h1>Background test</h1>
+</body>
+</html> \ No newline at end of file
diff --git a/works/html-margin-padding-body-margin-padding-test.html b/works/html-margin-padding-body-margin-padding-test.html
new file mode 100644
index 0000000..e6d5e9b
--- a/dev/null
+++ b/works/html-margin-padding-body-margin-padding-test.html
@@ -0,0 +1,14 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+<style>
+html {margin:2em;padding:2em;border:1px solid red;background:#faa;}
+body {margin:2em;padding:2em;border:1px solid blue;background:#aaf;}
+h1 {background: #fbf;margin:0;}
+</style>
+</head>
+<body>
+<h1>Background test</h1>
+</body>
+</html> \ No newline at end of file
diff --git a/works/html-padding-body-margin-padding-test.html b/works/html-padding-body-margin-padding-test.html
new file mode 100644
index 0000000..4d758c9
--- a/dev/null
+++ b/works/html-padding-body-margin-padding-test.html
@@ -0,0 +1,14 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+<style>
+html {margin:0;padding:2em;background:#faa;}
+body {margin:2em;padding:2em;border:1px solid blue;background:#aaf;}
+h1 {background: #fbf;margin:0;}
+</style>
+</head>
+<body>
+<h1>Background test</h1>
+</body>
+</html> \ No newline at end of file