summaryrefslogtreecommitdiffstats
path: root/khtml/test
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitce4a32fe52ef09d8f5ff1dd22c001110902b60a2 (patch)
tree5ac38a06f3dde268dc7927dc155896926aaf7012 /khtml/test
downloadtdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.tar.gz
tdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'khtml/test')
-rw-r--r--khtml/test/README6
-rw-r--r--khtml/test/align.html21
-rw-r--r--khtml/test/align1.html21
-rw-r--r--khtml/test/align2.html126
-rw-r--r--khtml/test/anchor1.html25
-rw-r--r--khtml/test/anchor2.html85
-rw-r--r--khtml/test/button.html14
-rw-r--r--khtml/test/color.html60
-rw-r--r--khtml/test/fixed-background.html47
-rw-r--r--khtml/test/image.gifbin0 -> 1476 bytes
-rw-r--r--khtml/test/image_map.html24
-rw-r--r--khtml/test/java.html15
-rw-r--r--khtml/test/jsplugins.html73
-rw-r--r--khtml/test/konqi.gifbin0 -> 39318 bytes
-rw-r--r--khtml/test/lake.classbin0 -> 3636 bytes
-rw-r--r--khtml/test/lists.html221
-rw-r--r--khtml/test/nav_bar.gifbin0 -> 1059 bytes
-rw-r--r--khtml/test/nbsp.html20
-rw-r--r--khtml/test/object.html4
-rw-r--r--khtml/test/pseudo.html27
-rw-r--r--khtml/test/testpages.html34
21 files changed, 823 insertions, 0 deletions
diff --git a/khtml/test/README b/khtml/test/README
new file mode 100644
index 000000000..2ffc4a940
--- /dev/null
+++ b/khtml/test/README
@@ -0,0 +1,6 @@
+The contents of this directory will be moved to the toplevel directory khtmltests
+
+PLEASE DO NOT POST TEST CASES HERE ANY MORE
+
+
+See khtmltests/README
diff --git a/khtml/test/align.html b/khtml/test/align.html
new file mode 100644
index 000000000..ab663bf42
--- /dev/null
+++ b/khtml/test/align.html
@@ -0,0 +1,21 @@
+<HTML>
+<HEAD>
+ <TITLE>Left Aligned Image</TITLE>
+</HEAD>
+<BODY>
+<IMG SRC="nav_bar.gif" height=100 width=200 ALIGN=left border=1>
+The image on this page should be left aligned. Especially the list which
+follows this text should be laid out correctly. Bla bla bla
+This is just some text which you can safely ignore. This is just some
+text which you can safely ignore. This is just some text which you can
+safely ignore. This is just some text which you can safely ignore.
+<br>
+<ul>
+<li> an item
+<li> This is a very long line which really should be placed on the right
+place despite it's very long length.
+<li> another item.
+</ul>
+This is some text placed after the list
+</body>
+</html>
diff --git a/khtml/test/align1.html b/khtml/test/align1.html
new file mode 100644
index 000000000..f288b52ef
--- /dev/null
+++ b/khtml/test/align1.html
@@ -0,0 +1,21 @@
+<HTML>
+<HEAD>
+ <TITLE>Left Aligned Image</TITLE>
+</HEAD>
+<BODY>
+<IMG SRC="nav_bar.gif" height=100 width=200 ALIGN=right border=1>
+The image on this page should be left aligned. Especially the list which
+follows this text should be laid out correctly. Bla bla bla
+This is just some text which you can safely ignore. This is just some
+text which you can safely ignore. This is just some text which you can
+safely ignore. This is just some text which you can safely ignore.
+<br>
+<ul>
+<li> an item
+<li> This is a very long line which really should be placed on the right
+place despite it's very long length.
+<li> another item.
+</ul>
+This is some text placed after the list
+</body>
+</html>
diff --git a/khtml/test/align2.html b/khtml/test/align2.html
new file mode 100644
index 000000000..56f3feb70
--- /dev/null
+++ b/khtml/test/align2.html
@@ -0,0 +1,126 @@
+<HTML>
+<HEAD>
+ <TITLE>Align Test 2</TITLE>
+</HEAD>
+<BODY>
+<H1>Align Test 2</H1>
+This page contains regression tests for vertical alignment of images.
+Each test consist of a table with a colored background.
+Within the table an empty image is shown with a border of 1 pixel around it.
+<HR>
+<TABLE width = 100%>
+<tr><td bgcolor="0000ff">
+<IMG SRC="unknown.gif" height=10 width=50 border=1>
+<FONT size=7>This image has no alignment</FONT>
+</td></tr>
+</TABLE>
+<HR>
+<TABLE width = 100%>
+<tr><td bgcolor="0000ff">
+<IMG SRC="unknown.gif" height=10 width=50 border=1 align=top>
+<FONT size=7>This image has align=top</FONT>
+</td></tr>
+</TABLE>
+<HR>
+<TABLE width = 100%>
+<tr><td bgcolor="0000ff">
+<IMG SRC="unknown.gif" height=10 width=50 border=1 align=middle>
+<FONT size=7>This image has align=middle</FONT>
+</td></tr>
+</TABLE>
+<HR>
+<TABLE width = 100%>
+<tr><td bgcolor="0000ff">
+<IMG SRC="unknown.gif" height=10 width=50 border=1 align=bottom>
+<FONT size=7>This image has align=bottom</FONT>
+</td></tr>
+</TABLE>
+<HR>
+<TABLE width = 100%>
+<tr><td bgcolor="0000ff">
+<IMG SRC="unknown.gif" height=150 width=50 border=1>
+<FONT size=7>This image has no alignment</FONT>
+<IMG SRC="unknown.gif" height=50 width=50 border=1>
+</td></tr>
+</TABLE>
+<HR>
+<TABLE width = 100%>
+<tr><td bgcolor="0000ff">
+<IMG SRC="unknown.gif" height=150 width=50 border=1 align=top>
+<FONT size=7>This image has align=top</FONT>
+</td></tr>
+</TABLE>
+<HR>
+<TABLE width = 100%>
+<tr><td bgcolor="0000ff">
+<IMG SRC="unknown.gif" height=150 width=50 border=1 align=middle>
+<FONT size=7>This image has align=middle</FONT>
+</td></tr>
+</TABLE>
+<HR>
+<TABLE width = 100%>
+<tr><td bgcolor="0000ff">
+<IMG SRC="unknown.gif" height=150 width=50 border=1 align=bottom>
+<FONT size=7>This image has align=bottom</FONT>
+</td></tr>
+</TABLE>
+<HR>
+<TABLE width = 100%>
+<tr><td bgcolor="0000ff">
+<IMG SRC="unknown.gif" height=10 width=50 border=1>
+<FONT>This image has no alignment</FONT>
+</td></tr>
+</TABLE>
+<HR>
+<TABLE width = 100%>
+<tr><td bgcolor="0000ff">
+<IMG SRC="unknown.gif" height=10 width=50 border=1 align=top>
+<FONT>This image has align=top</FONT>
+</td></tr>
+</TABLE>
+<HR>
+<TABLE width = 100%>
+<tr><td bgcolor="0000ff">
+<IMG SRC="unknown.gif" height=10 width=50 border=1 align=middle>
+<FONT>This image has align=middle</FONT>
+</td></tr>
+</TABLE>
+<HR>
+<TABLE width = 100%>
+<tr><td bgcolor="0000ff">
+<IMG SRC="unknown.gif" height=10 width=50 border=1 align=bottom>
+<FONT>This image has align=bottom</FONT>
+</td></tr>
+</TABLE>
+<HR>
+<TABLE width = 100%>
+<tr><td bgcolor="0000ff">
+<IMG SRC="unknown.gif" height=150 width=50 border=1>
+<FONT>This image has no alignment</FONT>
+<IMG SRC="unknown.gif" height=50 width=50 border=1>
+</td></tr>
+</TABLE>
+<HR>
+<TABLE width = 100%>
+<tr><td bgcolor="0000ff">
+<IMG SRC="unknown.gif" height=150 width=50 border=1 align=top>
+<FONT>This image has align=top</FONT>
+</td></tr>
+</TABLE>
+<HR>
+<TABLE width = 100%>
+<tr><td bgcolor="0000ff">
+<IMG SRC="unknown.gif" height=150 width=50 border=1 align=middle>
+<FONT>This image has align=middle</FONT>
+</td></tr>
+</TABLE>
+<HR>
+<TABLE width = 100%>
+<tr><td bgcolor="0000ff">
+<IMG SRC="unknown.gif" height=150 width=50 border=1 align=bottom>
+<FONT>This image has align=bottom</FONT>
+</td></tr>
+</TABLE>
+<HR>
+</body>
+</html>
diff --git a/khtml/test/anchor1.html b/khtml/test/anchor1.html
new file mode 100644
index 000000000..4dfb26134
--- /dev/null
+++ b/khtml/test/anchor1.html
@@ -0,0 +1,25 @@
+<html> <head> <title>Anchor Test 1</title> </head>
+
+
+<body>
+<H1>Anchor Test 1</H1>
+This page is a regression test for anchor's.
+<P>
+<A href="#anchor1">This</a> link should jump to anchor1.
+<P>
+<Table border=1>
+<tr>
+<td>
+This is a table to get some vertical spacing.
+<P>
+Note that the page may not scroll, if there are no scrollbars!
+</td>
+<td><img src="nav_bar.gif" height=200></td>
+</tr>
+</table>
+<P>
+This is <a name=anchor1>anchor1</a>.
+
+</body>
+
+</html>
diff --git a/khtml/test/anchor2.html b/khtml/test/anchor2.html
new file mode 100644
index 000000000..4f54e83f9
--- /dev/null
+++ b/khtml/test/anchor2.html
@@ -0,0 +1,85 @@
+<html> <head> <title>Anchor Test 1</title> </head>
+
+
+<body>
+<H1>Anchor Test 1</H1>
+This page is a regression test for anchor's.
+<P>
+This is <a name=anchor1>anchor1</a>.
+<P>
+<A href="#anchor2">This</a> link should jump to anchor2.
+<P>
+<A href="#anchor3">This</a> link should jump to anchor3.
+<P>
+<A href="#anchor4">This</a> link should jump to anchor4.
+<P>
+<A href="#anchor5">This</a> link should jump to anchor5.
+<P>
+<A href="#anchor6">This</a> link should jump to anchor6.
+<P>
+<A href="#anchor7">This</a> link should jump to anchor7.
+<P>
+<Table border=1>
+<tr>
+<td>
+This is a table to get some vertical spacing.
+</td>
+<td><img src="unknown.gif" height=100></td>
+</tr>
+</table>
+<P>
+This is <a name=anchor2>anchor2</a>.<BR>
+Jump back to <a href="#anchor1">anchor1</a>.
+<P>
+<Table border=1>
+<tr>
+<td>
+This is a table to get some vertical spacing.
+</td>
+<td><img src="unknown.gif" height=4000></td>
+</tr>
+</table>
+<P>
+This is <a name=anchor3>anchor3</a>.<BR>
+Jump back to <a href="#anchor1">anchor1</a>.
+<P>
+<Table border=1>
+<tr>
+<td>
+This is a table to get some vertical spacing.
+</td>
+<td><img src="unknown.gif" height=8000></td>
+</tr>
+</table>
+<P>
+This is <a name=anchor4>anchor4</a>.<BR>
+Jump back to <a href="#anchor1">anchor1</a>.
+<P>
+<Table border=1>
+<tr>
+<td>
+This is a table to get some vertical spacing.
+</td>
+<td><img src="unknown.gif" height=17000></td>
+</tr>
+</table>
+<P>
+This is <a name=anchor5>anchor5</a>.<BR>
+Jump back to <a href="#anchor1">anchor1</a>.
+<P>
+<Table border=1>
+<tr>
+<td>
+This is a table to get some vertical spacing.
+</td>
+<td><img src="unknown.gif" height=33000></td>
+</tr>
+</table>
+<P>
+This is <a name=anchor6>anchor6</a>.<BR>
+Jump back to <a href="#anchor1">anchor1</a>.
+<P>
+This <b id="anchor7">bold</b> tag has the id anchor7.
+</body>
+
+</html>
diff --git a/khtml/test/button.html b/khtml/test/button.html
new file mode 100644
index 000000000..b9c3ae177
--- /dev/null
+++ b/khtml/test/button.html
@@ -0,0 +1,14 @@
+<html>
+<body bgcolor=white>
+text before
+<button name=button type=submit value="this should get replaced by the contents">
+some text
+<table width=200 border=1>
+<tr><td bgcolor=red>1<td bgcolor=blue>2</tr>
+<tr><td bgcolor=blue>3<td bgcolor=red>4</tr>
+</table>
+more text
+</button>
+text after text after text after text after text after text after text after text after text after text after text after text after text after text after text after text after
+</body>
+</html> \ No newline at end of file
diff --git a/khtml/test/color.html b/khtml/test/color.html
new file mode 100644
index 000000000..ff5617214
--- /dev/null
+++ b/khtml/test/color.html
@@ -0,0 +1,60 @@
+<HTML>
+<HEAD>
+ <TITLE>Color Test 1</TITLE>
+</HEAD>
+<BODY>
+<H1>Color Test 1</H1>
+This page contains regression tests for the parsing of colors.
+Each test consist of a table with a colored background.
+Within the table the name of the color is written in black text.
+<HR>
+<TABLE width = 150>
+<tr><td bgcolor="#0000ff">
+Blue (#0000ff)
+</td></tr>
+</TABLE>
+<HR>
+<TABLE width = 150>
+<tr><td bgcolor="0000ff">
+Blue (0000ff)
+</td></tr>
+</TABLE>
+<HR>
+<TABLE width = 150>
+<tr><td bgcolor="blue">
+Blue (blue)
+</td></tr>
+</TABLE>
+<HR>
+<TABLE width = 150>
+<tr><td bgcolor="BLUE">
+Blue (BLUE)
+</td></tr>
+</TABLE>
+<HR>
+<TABLE width = 150>
+<tr><td bgcolor="#ffff00">
+Yellow (#ffff00)
+</td></tr>
+</TABLE>
+<HR>
+<TABLE width = 150>
+<tr><td bgcolor="ffff00">
+Yellow (ffff00)
+</td></tr>
+</TABLE>
+<HR>
+<TABLE width = 150>
+<tr><td bgcolor="yellow">
+Yellow (yellow)
+</td></tr>
+</TABLE>
+<HR>
+<TABLE width = 150>
+<tr><td bgcolor="teal">
+Teal (teal)
+</td></tr>
+</TABLE>
+<HR>
+</body>
+</html>
diff --git a/khtml/test/fixed-background.html b/khtml/test/fixed-background.html
new file mode 100644
index 000000000..754a6987f
--- /dev/null
+++ b/khtml/test/fixed-background.html
@@ -0,0 +1,47 @@
+<html> <head> <title>Listing Test 1</title>
+<style>
+html { background-attachment: fixed;
+ background-image: url(konqi.gif);
+}
+body { color: red; }
+</style>
+</head>
+<body>
+<H1>Listing Test 1</H1>
+This is a regression test to see if the parser handles the &lt;listing&gt;
+tag correctly.<BR>
+<H2>Simple listing</H2>
+Now follows a short listing, after the listing the text
+"End of listing" should be visible.
+<listing>
+//----------------------------------------------------------------------------
+//
+// KDE HTML Widget -- Debug functions
+
+#include <stdio.h>
+#include <stdarg.h>
+#include "khtml.h"
+
+#ifdef MARTINSDEBUG
+void debugM( const char *msg, ...)
+{
+ va_list ap;
+ va_start( ap, msg ); // use variable arg list
+ vfprintf( stdout, msg, ap );
+ va_end( ap );
+#else
+void debugM(const char *, ... )
+{
+#endif
+}
+</listing>
+End of listing.
+<H2>Listing with entities</H2>
+Now follows a short listing, the listing shoul read
+"a = b&amp;amp;"<BR>
+<listing>
+a = b&amp;
+</listing>
+
+</BODY>
+</HTML>
diff --git a/khtml/test/image.gif b/khtml/test/image.gif
new file mode 100644
index 000000000..ba019efb8
--- /dev/null
+++ b/khtml/test/image.gif
Binary files differ
diff --git a/khtml/test/image_map.html b/khtml/test/image_map.html
new file mode 100644
index 000000000..21e002382
--- /dev/null
+++ b/khtml/test/image_map.html
@@ -0,0 +1,24 @@
+<html> <head> <title>Image Map Test 1</title> </head>
+
+
+<body>
+<H1>Image Map Test 1</H1>
+
+The following image is a clickable map:
+<P>
+<IMG ISMAP SRC="nav_bar.gif" ALT="" BORDER=0 USEMAP="#topbar" HEIGHT=18 WIDTH=361>
+<P>
+Moving the mouse cursor over the image should show different destinations
+<P>
+
+<!-- =============== TOP IMAGE MAP =========== -->
+<MAP name="topbar">
+<AREA shape="rect" coords="90,0,120,18" href="http://www.kde.org/faq/kdefaq.html">
+<AREA shape="rect" coords="130,0,205,18" href="ftp://ftp.kde.org/pub/kde/">
+<AREA shape="rect" coords="215,0,295,18" href="http://www.kde.org/absolute_url.html">
+<AREA shape="rect" coords="305,0,355,18" href="relative_url_index.html">
+<AREA shape="default" nohref>
+</MAP>
+
+</BODY>
+</HTML>
diff --git a/khtml/test/java.html b/khtml/test/java.html
new file mode 100644
index 000000000..dfe8d698a
--- /dev/null
+++ b/khtml/test/java.html
@@ -0,0 +1,15 @@
+<html>
+<body>
+<table>
+<tr>
+<td width=240>
+<APPLET CODE=lake.class ID=Lake WIDTH=240 HEIGHT=630>
+ <PARAM NAME=image VALUE="konqi.gif">
+</APPLET>
+<td width=240>
+This is a small page to test html's java support. On the left you should see a picture of
+Konqi, which is mirrored on a water surface below.
+</table>
+This text should be directly beow the applet...
+</body>
+</html> \ No newline at end of file
diff --git a/khtml/test/jsplugins.html b/khtml/test/jsplugins.html
new file mode 100644
index 000000000..7af7a25f7
--- /dev/null
+++ b/khtml/test/jsplugins.html
@@ -0,0 +1,73 @@
+<HTML>
+<HEAD>
+<TITLE>About Plug-ins</TITLE>
+</HEAD>
+<BODY>
+<SCRIPT language="javascript">
+
+
+<!-- JavaScript to enumerate and display all installed plug-ins -->
+
+<!-- First, refresh plugins in case anything has been changed recently in prefs: -->
+<!-- (The "false" argument tells refresh not to reload or activate any plugins that would -->
+<!-- be active otherwise. In contrast, one would use "true" in the case of ASD instead of -->
+<!-- restarting) -->
+navigator.plugins.refresh(false);
+
+
+numPlugins = navigator.plugins.length;
+
+if (numPlugins > 0)
+ document.writeln("<b><font size=+3>Installed plug-ins</font></b><br>");
+else
+ document.writeln("<b><font size=+2>No plug-ins are installed.</font></b><br>");
+
+document.writeln("For more information on Netscape plug-ins, <A HREF=http://home.netscape.com/plugins/>click here</A>.<p><hr>");
+
+for (i = 0; i < numPlugins; i++)
+{
+ plugin = navigator.plugins[i];
+
+ document.write("<center><font size=+1><b>");
+ document.write(plugin.name);
+ document.writeln("</b></font></center><br>");
+
+ document.writeln("<dl><dd>File name:");
+ document.write(plugin.filename);
+ document.write("<dd><br>");
+ document.write(plugin.description);
+ document.writeln("</dl><p>");
+
+ document.writeln("<table width=100% border=2 cellpadding=5>");
+ document.writeln("<tr><th width=20%><font size=-1>Mime Type</font></th>");
+ document.writeln("<th width=50%><font size=-1>Description</font></th>");
+ document.writeln("<th width=20%><font size=-1>Suffixes</font></th>");
+ document.writeln("<th><font size=-1>Enabled</th></tr>");
+ numTypes = plugin.length;
+ for (j = 0; j < numTypes; j++)
+ {
+ mimetype = plugin[j];
+
+ if (mimetype)
+ {
+ enabled = "No";
+ enabledPlugin = mimetype.enabledPlugin;
+ if (enabledPlugin && (enabledPlugin.name == plugin.name))
+ enabled = "Yes";
+
+ document.writeln("<tr align=center>");
+ document.writeln("<td>" + mimetype.type + "</td>");
+ document.writeln("<td>" + mimetype.description + "</td>");
+ document.writeln("<td>" + mimetype.suffixes + "</td>");
+ document.writeln("<td>" + enabled + "</td>");
+ document.writeln("</tr>");
+ }
+ }
+
+ document.write("</table><p><hr><p>");
+}
+
+
+</SCRIPT>
+</BODY>
+</HTML> \ No newline at end of file
diff --git a/khtml/test/konqi.gif b/khtml/test/konqi.gif
new file mode 100644
index 000000000..b80293aa9
--- /dev/null
+++ b/khtml/test/konqi.gif
Binary files differ
diff --git a/khtml/test/lake.class b/khtml/test/lake.class
new file mode 100644
index 000000000..3196702b1
--- /dev/null
+++ b/khtml/test/lake.class
Binary files differ
diff --git a/khtml/test/lists.html b/khtml/test/lists.html
new file mode 100644
index 000000000..8f781653c
--- /dev/null
+++ b/khtml/test/lists.html
@@ -0,0 +1,221 @@
+<html>
+<body>
+<ul>
+<li> first item
+<li> second item
+<li> third item
+<li> fourth item
+</ul>
+
+<hr>
+
+Nested lists:
+<ul>
+<li> first item
+<li> second item
+<li> a nested list
+<ul>
+<li> first nested item
+<li> second nested item
+</ul>
+<li> fourth item
+</ul>
+
+<hr>
+
+Numbered list:
+<ol>
+<li> first item
+<li> second item
+<li> third item
+<li> fourth item
+</ol>
+
+<hr>
+In a fixed width table:
+<table width=100 border=1 bgcolor=white>
+<tr><td>
+<ul>
+<li> first item
+<li> second item
+<li> third item
+<li> fourth item
+</ul>
+
+<hr>
+
+Nested lists:
+<ul>
+<li> first item
+<li> second item
+<li> a nested list
+<ul>
+<li> first nested item
+<li> second nested item
+</ul>
+<li> fourth item
+</ul>
+
+<hr>
+
+Numbered list:
+<ol>
+<li> first item
+<li> second item
+<li> third item
+<li> fourth item
+</ol>
+</td></tr>
+</table>
+
+<hr>
+In a variable width table:
+<table border=1 bgcolor=white>
+<tr><td>
+<ul>
+<li> first item
+<li> second item
+<li> third item
+<li> fourth item
+</ul>
+
+<hr>
+
+Nested lists:
+<ul>
+<li> first item
+<li> second item
+<li> a nested list
+<ul>
+<li> first nested item
+<li> second nested item
+</ul>
+<li> fourth item
+</ul>
+
+<hr>
+
+Numbered list:
+<ol>
+<li> first item
+<li> second item
+<li> third item
+<li> fourth item
+</ol>
+</td></tr>
+</table>
+
+<hr>
+Now the same thing in a right to left context:
+
+<div dir=rtl>
+<hr>
+<ul dir=rtl>
+<li> first item
+<li> second item
+<li> third item
+<li> fourth item
+</ul>
+
+<hr>
+
+Nested lists:
+<ul>
+<li> first item
+<li> second item
+<li> a nested list
+<ul>
+<li> first nested item
+<li> second nested item
+</ul>
+<li> fourth item
+</ul>
+
+<hr>
+
+Numbered list:
+<ol>
+<li> first item
+<li> second item
+<li> third item
+<li> fourth item
+</ol>
+
+<hr>
+In a fixed width table:
+<table width=100 border=1 bgcolor=white>
+<tr><td>
+<ul>
+<li> first item
+<li> second item
+<li> third item
+<li> fourth item
+</ul>
+
+<hr>
+
+Nested lists:
+<ul>
+<li> first item
+<li> second item
+<li> a nested list
+<ul>
+<li> first nested item
+<li> second nested item
+</ul>
+<li> fourth item
+</ul>
+
+<hr>
+
+Numbered list:
+<ol>
+<li> first item
+<li> second item
+<li> third item
+<li> fourth item
+</ol>
+</td></tr>
+</table>
+
+<hr>
+In a variable width table:
+<table border=1 bgcolor=white>
+<tr><td>
+<ul>
+<li> first item
+<li> second item
+<li> third item
+<li> fourth item
+</ul>
+
+<hr>
+
+Nested lists:
+<ul>
+<li> first item
+<li> second item
+<li> a nested list
+<ul>
+<li> first nested item
+<li> second nested item
+</ul>
+<li> fourth item
+</ul>
+
+<hr>
+
+Numbered list:
+<ol>
+<li> first item
+<li> second item
+<li> third item
+<li> fourth item
+</ol>
+</td></tr>
+</table>
+</div>
+
+
+</body>
+</html> \ No newline at end of file
diff --git a/khtml/test/nav_bar.gif b/khtml/test/nav_bar.gif
new file mode 100644
index 000000000..174348da4
--- /dev/null
+++ b/khtml/test/nav_bar.gif
Binary files differ
diff --git a/khtml/test/nbsp.html b/khtml/test/nbsp.html
new file mode 100644
index 000000000..7a8bde9de
--- /dev/null
+++ b/khtml/test/nbsp.html
@@ -0,0 +1,20 @@
+<html> <head> <title>NBSP Test</title> </head>
+
+
+<body>
+<H1>NBSP Test</H1>
+This page is a regression test to test non-breaking spaces.<BR>
+The following text contains normal and non-breaking spaces.<BR>
+After each 'a' a non-breaking space occurs. After each 'b' a
+breaking space occurs:
+<HR>
+<FONT face="lucida">
+ccccccca&nbsp;cccca&nbsp;ccccccb ccb cb ccb ccca&nbsp;ca&nbsp;a&nbsp;cb
+c4d&nbsp;&nbsp;&nbsp;&nbsp;cccc2d&nbsp;&nbsp;ccccb ccb ccc
+</FONT>
+<HR>
+
+
+</body>
+
+</html>
diff --git a/khtml/test/object.html b/khtml/test/object.html
new file mode 100644
index 000000000..91da9f575
--- /dev/null
+++ b/khtml/test/object.html
@@ -0,0 +1,4 @@
+<html><head></head><body>
+<object type="inode/directory" data="file:/home/" width="300" height="100">
+</body>
+</html>
diff --git a/khtml/test/pseudo.html b/khtml/test/pseudo.html
new file mode 100644
index 000000000..caba3bfee
--- /dev/null
+++ b/khtml/test/pseudo.html
@@ -0,0 +1,27 @@
+
+
+<html>
+<head>
+<style>
+span { background-color: blue; }
+span:hover { background-color: red; }
+div { border: 2px solid blue; }
+div:first-letter { background-color: green; float: left; font-size: 3em; margin: 3px 3px 3px 3px}
+div:first-line { background-color: red; font-size: 1em; }
+
+</style>
+</head>
+<body>
+<h1>:first-letter and :first-line</h1>
+<div>
+Hello world Hello world Hello worldHello world Hello world Hello world Hello world
+Hello world Hello world Hello worldHello world Hello world Hello world Hello world
+Hello world Hello world Hello worldHello world Hello world Hello world Hello world
+Hello world Hello world Hello worldHello world Hello world Hello world Hello world
+</div>
+<h1>:hover</h1>
+<p>
+ jee jee <span>jee</span> jee jee jee
+</p>
+</body>
+</html>
diff --git a/khtml/test/testpages.html b/khtml/test/testpages.html
new file mode 100644
index 000000000..e117a7db9
--- /dev/null
+++ b/khtml/test/testpages.html
@@ -0,0 +1,34 @@
+<html>
+<title>
+Links to some test pages
+</title>
+<body>
+<p>
+<a href="http://dbaron.org/dom/test/">David Baron's DOM test suite</a><br>
+Tests that work perfectly so far:
+<a href="http://dbaron.org/dom/test/one-core-html/DocumentFragment">DocumentFragment</a>,
+<a href="http://dbaron.org/dom/test/one-core-html/Document">Document</a>,
+<a href="http://dbaron.org/dom/test/one-core-html/Comment">Comment</a>,
+<a href="http://dbaron.org/dom/test/one-core-html/Node">Node</a>,
+<a href="http://dbaron.org/dom/test/one-core-html/Text">Text</a>
+
+<p>
+<a href="http://www.jeremie.com/Dev/DOM/index.jer">more jscript tests</a>
+
+<p>
+Some pages with tests from mozilla.org:
+<ul>
+<li><a href="http://komodo.mozilla.org/buster/">tests lots of pages</a>
+<li><a href="http://www.mozilla.org/quality/browser_sc.html">collection of links to test pages</a>
+</ul>
+<p>
+Some more CSS: <a href="http://haughey.com/csshorrors/">http://haughey.com/csshorrors/</a><br>
+The evil Tests: <a href="http://www.hixie.ch/tests/evil/mixed/home.html">http://www.hixie.ch/tests/evil/mixed/home.html</a>
+<p>
+The w3c CSS test suite:<a href="http://www.w3.org/Style/CSS/Test/">
+http://www.w3.org/Style/CSS/Test/</a>
+<p>
+CSS+Javascript tests: <a href="http://www.quirksmode.org">http://www.quirksmode.org</a><p>
+More evil CSS tests on <a href="http://www.endoframe.com/css/tests/">http://www.endoframe.com/css/tests/</a>
+ </body>
+</html>