From ce4a32fe52ef09d8f5ff1dd22c001110902b60a2 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: 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 --- khtml/test/README | 6 ++ khtml/test/align.html | 21 ++++ khtml/test/align1.html | 21 ++++ khtml/test/align2.html | 126 ++++++++++++++++++++++ khtml/test/anchor1.html | 25 +++++ khtml/test/anchor2.html | 85 +++++++++++++++ khtml/test/button.html | 14 +++ khtml/test/color.html | 60 +++++++++++ khtml/test/fixed-background.html | 47 +++++++++ khtml/test/image.gif | Bin 0 -> 1476 bytes khtml/test/image_map.html | 24 +++++ khtml/test/java.html | 15 +++ khtml/test/jsplugins.html | 73 +++++++++++++ khtml/test/konqi.gif | Bin 0 -> 39318 bytes khtml/test/lake.class | Bin 0 -> 3636 bytes khtml/test/lists.html | 221 +++++++++++++++++++++++++++++++++++++++ khtml/test/nav_bar.gif | Bin 0 -> 1059 bytes khtml/test/nbsp.html | 20 ++++ khtml/test/object.html | 4 + khtml/test/pseudo.html | 27 +++++ khtml/test/testpages.html | 34 ++++++ 21 files changed, 823 insertions(+) create mode 100644 khtml/test/README create mode 100644 khtml/test/align.html create mode 100644 khtml/test/align1.html create mode 100644 khtml/test/align2.html create mode 100644 khtml/test/anchor1.html create mode 100644 khtml/test/anchor2.html create mode 100644 khtml/test/button.html create mode 100644 khtml/test/color.html create mode 100644 khtml/test/fixed-background.html create mode 100644 khtml/test/image.gif create mode 100644 khtml/test/image_map.html create mode 100644 khtml/test/java.html create mode 100644 khtml/test/jsplugins.html create mode 100644 khtml/test/konqi.gif create mode 100644 khtml/test/lake.class create mode 100644 khtml/test/lists.html create mode 100644 khtml/test/nav_bar.gif create mode 100644 khtml/test/nbsp.html create mode 100644 khtml/test/object.html create mode 100644 khtml/test/pseudo.html create mode 100644 khtml/test/testpages.html (limited to 'khtml/test') 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 @@ + + + Left Aligned Image + + + +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. +
+ +This is some text placed after the list + + 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 @@ + + + Left Aligned Image + + + +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. +
+ +This is some text placed after the list + + 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 @@ + + + Align Test 2 + + +

Align Test 2

+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. +
+ + +
+ +This image has no alignment +
+
+ + +
+ +This image has align=top +
+
+ + +
+ +This image has align=middle +
+
+ + +
+ +This image has align=bottom +
+
+ + +
+ +This image has no alignment + +
+
+ + +
+ +This image has align=top +
+
+ + +
+ +This image has align=middle +
+
+ + +
+ +This image has align=bottom +
+
+ + +
+ +This image has no alignment +
+
+ + +
+ +This image has align=top +
+
+ + +
+ +This image has align=middle +
+
+ + +
+ +This image has align=bottom +
+
+ + +
+ +This image has no alignment + +
+
+ + +
+ +This image has align=top +
+
+ + +
+ +This image has align=middle +
+
+ + +
+ +This image has align=bottom +
+
+ + 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 @@ + Anchor Test 1 + + + +

Anchor Test 1

+This page is a regression test for anchor's. +

+This link should jump to anchor1. +

+ + + + + +
+This is a table to get some vertical spacing. +

+Note that the page may not scroll, if there are no scrollbars! +

+

+This is anchor1. + + + + 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 @@ + Anchor Test 1 + + + +

Anchor Test 1

+This page is a regression test for anchor's. +

+This is anchor1. +

+This link should jump to anchor2. +

+This link should jump to anchor3. +

+This link should jump to anchor4. +

+This link should jump to anchor5. +

+This link should jump to anchor6. +

+This link should jump to anchor7. +

+ + + + + +
+This is a table to get some vertical spacing. +
+

+This is anchor2.
+Jump back to anchor1. +

+ + + + + +
+This is a table to get some vertical spacing. +
+

+This is anchor3.
+Jump back to anchor1. +

+ + + + + +
+This is a table to get some vertical spacing. +
+

+This is anchor4.
+Jump back to anchor1. +

+ + + + + +
+This is a table to get some vertical spacing. +
+

+This is anchor5.
+Jump back to anchor1. +

+ + + + + +
+This is a table to get some vertical spacing. +
+

+This is anchor6.
+Jump back to anchor1. +

+This bold tag has the id anchor7. + + + 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 @@ + + +text before + +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 + + \ 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 @@ + + + Color Test 1 + + +

Color Test 1

+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. +
+ + +
+Blue (#0000ff) +
+
+ + +
+Blue (0000ff) +
+
+ + +
+Blue (blue) +
+
+ + +
+Blue (BLUE) +
+
+ + +
+Yellow (#ffff00) +
+
+ + +
+Yellow (ffff00) +
+
+ + +
+Yellow (yellow) +
+
+ + +
+Teal (teal) +
+
+ + 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 @@ + Listing Test 1 + + + +

Listing Test 1

+This is a regression test to see if the parser handles the <listing> +tag correctly.
+

Simple listing

+Now follows a short listing, after the listing the text +"End of listing" should be visible. ++//---------------------------------------------------------------------------- +// +// KDE HTML Widget -- Debug functions + +#include +#include +#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 +} + +End of listing. +

Listing with entities

+Now follows a short listing, the listing shoul read +"a = b&amp;"
++a = b& + + + + diff --git a/khtml/test/image.gif b/khtml/test/image.gif new file mode 100644 index 000000000..ba019efb8 Binary files /dev/null and b/khtml/test/image.gif 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 @@ + Image Map Test 1 + + + +

Image Map Test 1

+ +The following image is a clickable map: +

+ +

+Moving the mouse cursor over the image should show different destinations +

+ + + + + + + + + + + + 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 @@ + + + + +
+ + + + +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. +
+This text should be directly beow the applet... + + \ 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 @@ + + +About Plug-ins + + + + + \ 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 Binary files /dev/null and b/khtml/test/konqi.gif differ diff --git a/khtml/test/lake.class b/khtml/test/lake.class new file mode 100644 index 000000000..3196702b1 Binary files /dev/null and b/khtml/test/lake.class 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 @@ + + +

+ +
+ +Nested lists: + + +
+ +Numbered list: +
    +
  1. first item +
  2. second item +
  3. third item +
  4. fourth item +
+ +
+In a fixed width table: + + +
+
    +
  • first item +
  • second item +
  • third item +
  • fourth item +
+ +
+ +Nested lists: +
    +
  • first item +
  • second item +
  • a nested list +
      +
    • first nested item +
    • second nested item +
    +
  • fourth item +
+ +
+ +Numbered list: +
    +
  1. first item +
  2. second item +
  3. third item +
  4. fourth item +
+
+ +
+In a variable width table: + + +
+
    +
  • first item +
  • second item +
  • third item +
  • fourth item +
+ +
+ +Nested lists: +
    +
  • first item +
  • second item +
  • a nested list +
      +
    • first nested item +
    • second nested item +
    +
  • fourth item +
+ +
+ +Numbered list: +
    +
  1. first item +
  2. second item +
  3. third item +
  4. fourth item +
+
+ +
+Now the same thing in a right to left context: + +
+
+ + +
+ +Nested lists: + + +
+ +Numbered list: +
    +
  1. first item +
  2. second item +
  3. third item +
  4. fourth item +
+ +
+In a fixed width table: + + +
+
    +
  • first item +
  • second item +
  • third item +
  • fourth item +
+ +
+ +Nested lists: +
    +
  • first item +
  • second item +
  • a nested list +
      +
    • first nested item +
    • second nested item +
    +
  • fourth item +
+ +
+ +Numbered list: +
    +
  1. first item +
  2. second item +
  3. third item +
  4. fourth item +
+
+ +
+In a variable width table: + + +
+
    +
  • first item +
  • second item +
  • third item +
  • fourth item +
+ +
+ +Nested lists: +
    +
  • first item +
  • second item +
  • a nested list +
      +
    • first nested item +
    • second nested item +
    +
  • fourth item +
+ +
+ +Numbered list: +
    +
  1. first item +
  2. second item +
  3. third item +
  4. fourth item +
+
+
+ + + + \ 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 Binary files /dev/null and b/khtml/test/nav_bar.gif 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 @@ + NBSP Test + + + +

NBSP Test

+This page is a regression test to test non-breaking spaces.
+The following text contains normal and non-breaking spaces.
+After each 'a' a non-breaking space occurs. After each 'b' a +breaking space occurs: +
+ +ccccccca cccca ccccccb ccb cb ccb ccca ca a cb +c4d    cccc2d  ccccb ccb ccc + +
+ + + + + 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 @@ + + + + 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 @@ + + + + + + + +

:first-letter and :first-line

+
+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 +
+

:hover

+

+ jee jee jee jee jee jee +

+ + 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 @@ + + +Links to some test pages + + +

+David Baron's DOM test suite
+Tests that work perfectly so far: +DocumentFragment, +Document, +Comment, +Node, +Text + +

+more jscript tests + +

+Some pages with tests from mozilla.org: +

+

+Some more CSS: http://haughey.com/csshorrors/
+The evil Tests: http://www.hixie.ch/tests/evil/mixed/home.html +

+The w3c CSS test suite: +http://www.w3.org/Style/CSS/Test/ +

+CSS+Javascript tests: http://www.quirksmode.org

+More evil CSS tests on http://www.endoframe.com/css/tests/ + + -- cgit v1.2.1