add more tests - webdump_tests - Testfiles for webdump
HTML git clone git://git.codemadness.org/webdump_tests
DIR Log
DIR Files
DIR Refs
DIR README
---
DIR commit e392b1c578e2c5839304e02426f393a377541fd6
DIR parent eff47eb97a04388d06ac99849220fa62b1955e26
HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Thu, 2 Jul 2026 19:44:44 +0200
add more tests
Diffstat:
M tests/abbr.html | 2 --
A tests/duplicate_link.html | 4 ++++
A tests/q.html | 2 ++
A tests/ruby.html | 5 +++++
A tests/ruby_html.html | 10 ++++++++++
A tests/textarea.html | 7 +++++++
A tests/title_almost_close.html | 1 +
A tests/title_cdata.html | 3 +++
A tests/title_comment.html | 1 +
A tests/title_complex_tags.html | 1 +
A tests/title_data_entity.html | 1 +
A tests/title_with_tags.html | 2 ++
A tests/unclosed_markup.html | 4 ++++
13 files changed, 41 insertions(+), 2 deletions(-)
---
DIR diff --git a/tests/abbr.html b/tests/abbr.html
@@ -1,3 +1 @@
-<h1>The abbr element</h1>
-
<p>The <abbr title="World Health Organization">WHO</abbr> was founded in 1948.</p>
DIR diff --git a/tests/duplicate_link.html b/tests/duplicate_link.html
@@ -0,0 +1,4 @@
+<a href="test.html">test</a>
+<a href="test.html">test (duplicate)</a>
+<a href="test2.html">test 2</a>
+<a href="test3.html">test 3</a>
DIR diff --git a/tests/q.html b/tests/q.html
@@ -0,0 +1,2 @@
+<p>The man said <q>Things that are impossible just take
+longer</q>. I disagreed with him.</p>
DIR diff --git a/tests/ruby.html b/tests/ruby.html
@@ -0,0 +1,5 @@
+<ruby>
+♥<rp>: </rp><rt>Heart</rt><rp>, </rp><rt lang=fr>Cœur</rt><rp>.</rp>
+☘<rp>: </rp><rt>Shamrock</rt><rp>, </rp><rt lang=fr>Trèfle</rt><rp>.</rp>
+✶<rp>: </rp><rt>Star</rt><rp>, </rp><rt lang=fr>Étoile</rt><rp>.</rp>
+</ruby>
DIR diff --git a/tests/ruby_html.html b/tests/ruby_html.html
@@ -0,0 +1,10 @@
+<!--
+from: https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-rt-element
+-->
+
+<ruby>
+ <ruby>HT<rt>Hypertext</rt>M<rt>Markup</rt>L<rt>Language</rt></ruby>
+ <rt>An abstract language for describing documents and applications
+</ruby>
+
+<ruby><rb>上<rb>手<rt>じよう<rt>ず<rtc><rt>jou<rt>zu</ruby>
DIR diff --git a/tests/textarea.html b/tests/textarea.html
@@ -0,0 +1,7 @@
+<textarea>
+This is a test.
+
+It contains characters such as < and >.
+
+<b>is not interpreted</b>
+</textarea>
DIR diff --git a/tests/title_almost_close.html b/tests/title_almost_close.html
@@ -0,0 +1 @@
+<title>This is a test. </titleHAHA just kidding this is not closed yet. Now we will:</title>
DIR diff --git a/tests/title_cdata.html b/tests/title_cdata.html
@@ -0,0 +1,3 @@
+<!-- all text in this title, including CDATA should be visible -->
+
+<title><![CDATA[this is a title with CDATA text. it should all be visible]]></title>
DIR diff --git a/tests/title_comment.html b/tests/title_comment.html
@@ -0,0 +1 @@
+<title>This is a title tag, it has a comment <!-- This should also be visible --></title>
DIR diff --git a/tests/title_complex_tags.html b/tests/title_complex_tags.html
@@ -0,0 +1 @@
+<title>this is a most stupid example <a href="bla">plop</a><b>bold</b> <blink>and</blink> beautiful <span class="classy">spik & span</span></title>
DIR diff --git a/tests/title_data_entity.html b/tests/title_data_entity.html
@@ -0,0 +1 @@
+<title>This is a test for data entities in titles. < > &lol; Sometimes it works ™</title>
DIR diff --git a/tests/title_with_tags.html b/tests/title_with_tags.html
@@ -0,0 +1,2 @@
+<title>This is a test. It contains characters such as < and >. <b>is not interpreted</b></title>
+
DIR diff --git a/tests/unclosed_markup.html b/tests/unclosed_markup.html
@@ -0,0 +1,4 @@
+<u><b>This is a test
+<br/>
+</u>
+abc