Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Add testcases for PR #848 #32

Open
wants to merge 2 commits into
base: next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions cases/testbase-expects/case-848.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>add 'slot' tag</title>
</head>
<body>
<p><slot name="my-text">My default text</slot></p>
<my-paragraph><span slot="my-text">Let's have some different
text!</span></my-paragraph>
<my-paragraph>
<ul slot="my-text">
<li>Let's have some different text!</li>
<li>In a list!</li>
</ul>
</my-paragraph>
</body>
</html>
13 changes: 13 additions & 0 deletions cases/testbase-expects/case-848.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Info: Document content looks like HTML5
No warnings or errors were found.

About HTML Tidy: https://github.com/htacg/tidy-html5
Bug reports and comments: https://github.com/htacg/tidy-html5/issues
Official mailing list: https://lists.w3.org/Archives/Public/public-htacg/
Latest HTML specification: http://dev.w3.org/html5/spec-author-view/
Validate your HTML documents: http://validator.w3.org/nu/
Lobby your company to join the W3C: http://www.w3.org/Consortium

Do you speak a language other than English, or a different variant of
English? Consider helping us to localize HTML Tidy. For details please see
https://github.com/htacg/tidy-html5/blob/master/README/LOCALIZE.md
1 change: 1 addition & 0 deletions cases/testbase/_manifest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -238,3 +238,4 @@
476a 1
476b 1
629 1
848 0
1 change: 1 addition & 0 deletions cases/testbase/case-848.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
new-blocklevel-tags: my-paragraph
21 changes: 21 additions & 0 deletions cases/testbase/case-848.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>add 'slot' tag</title>
</head>
<body>
<p><slot name="my-text">My default text</slot></p>

<my-paragraph>
<span slot="my-text">Let's have some different text!</span>
</my-paragraph>

<my-paragraph>
<ul slot="my-text">
<li>Let's have some different text!</li>
<li>In a list!</li>
</ul>
</my-paragraph>
</body>
</html>