Skip to content

Commit 8e58088

Browse files
committed
Add testcases for PR #848
This change contains the testcase needed for htacg/tidy-html5#848
1 parent 00f1e38 commit 8e58088

File tree

5 files changed

+51
-0
lines changed

5 files changed

+51
-0
lines changed

cases/testbase-expects/case-848.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>test</title>
5+
</head>
6+
<body>
7+
<p><slot name="my-text">My default text</slot></p>
8+
<my-paragraph><span slot="my-text">Let's have some different
9+
text!</span></my-paragraph>
10+
<my-paragraph>
11+
<ul slot="my-text">
12+
<li>Let's have some different text!</li>
13+
<li>In a list!</li>
14+
</ul>
15+
</my-paragraph>
16+
</body>
17+
</html>

cases/testbase-expects/case-848.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Info: Document content looks like HTML5
2+
No warnings or errors were found.
3+
4+
About HTML Tidy: https://github.com/htacg/tidy-html5
5+
Bug reports and comments: https://github.com/htacg/tidy-html5/issues
6+
Official mailing list: https://lists.w3.org/Archives/Public/public-htacg/
7+
Latest HTML specification: http://dev.w3.org/html5/spec-author-view/
8+
Validate your HTML documents: http://validator.w3.org/nu/
9+
Lobby your company to join the W3C: http://www.w3.org/Consortium
10+
11+
Do you speak a language other than English, or a different variant of
12+
English? Consider helping us to localize HTML Tidy. For details please see
13+
https://github.com/htacg/tidy-html5/blob/master/README/LOCALIZE.md

cases/testbase/_manifest.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,3 +238,4 @@
238238
476a 1
239239
476b 1
240240
629 1
241+
848 0

cases/testbase/case-848.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
new-blocklevel-tags: my-paragraph

cases/testbase/case-848.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>test</title>
5+
</head>
6+
<body>
7+
<p><slot name="my-text">My default text</slot></p>
8+
<my-paragraph>
9+
<span slot="my-text">Let's have some different text!</span>
10+
</my-paragraph>
11+
12+
<my-paragraph>
13+
<ul slot="my-text">
14+
<li>Let's have some different text!</li>
15+
<li>In a list!</li>
16+
</ul>
17+
</my-paragraph>
18+
</body>
19+
</html>

0 commit comments

Comments
 (0)