From 4052718fb80df188ea47ef82067fb10e010ca292 Mon Sep 17 00:00:00 2001 From: Jim Derry Date: Wed, 30 Jun 2021 10:16:10 -0400 Subject: [PATCH] Added test cases for this PR. --- .../cases/github-cases/case-729a.conf | 2 ++ .../cases/github-cases/case-729a@2.html | 25 +++++++++++++++++++ .../cases/github-cases/case-729b.conf | 2 ++ .../cases/github-cases/case-729b@1.html | 25 +++++++++++++++++++ .../cases/github-expects/case-729a.txt | 19 ++++++++++++++ .../cases/github-expects/case-729b.html | 21 ++++++++++++++++ .../cases/github-expects/case-729b.txt | 17 +++++++++++++ 7 files changed, 111 insertions(+) create mode 100755 regression_testing/cases/github-cases/case-729a.conf create mode 100755 regression_testing/cases/github-cases/case-729a@2.html create mode 100755 regression_testing/cases/github-cases/case-729b.conf create mode 100755 regression_testing/cases/github-cases/case-729b@1.html create mode 100644 regression_testing/cases/github-expects/case-729a.txt create mode 100644 regression_testing/cases/github-expects/case-729b.html create mode 100644 regression_testing/cases/github-expects/case-729b.txt diff --git a/regression_testing/cases/github-cases/case-729a.conf b/regression_testing/cases/github-cases/case-729a.conf new file mode 100755 index 0000000..471cfa1 --- /dev/null +++ b/regression_testing/cases/github-cases/case-729a.conf @@ -0,0 +1,2 @@ +# Sample config for 729a. +strict-tags-attributes: yes \ No newline at end of file diff --git a/regression_testing/cases/github-cases/case-729a@2.html b/regression_testing/cases/github-cases/case-729a@2.html new file mode 100755 index 0000000..ea80407 --- /dev/null +++ b/regression_testing/cases/github-cases/case-729a@2.html @@ -0,0 +1,25 @@ + + + + + Alignment + + + + + + + +
+ text +
+ + + diff --git a/regression_testing/cases/github-cases/case-729b.conf b/regression_testing/cases/github-cases/case-729b.conf new file mode 100755 index 0000000..499b2c7 --- /dev/null +++ b/regression_testing/cases/github-cases/case-729b.conf @@ -0,0 +1,2 @@ +# Sample config for 729b. +strict-tags-attributes: no diff --git a/regression_testing/cases/github-cases/case-729b@1.html b/regression_testing/cases/github-cases/case-729b@1.html new file mode 100755 index 0000000..ea80407 --- /dev/null +++ b/regression_testing/cases/github-cases/case-729b@1.html @@ -0,0 +1,25 @@ + + + + + Alignment + + + + + + + +
+ text +
+ + + diff --git a/regression_testing/cases/github-expects/case-729a.txt b/regression_testing/cases/github-expects/case-729a.txt new file mode 100644 index 0000000..d87b564 --- /dev/null +++ b/regression_testing/cases/github-expects/case-729a.txt @@ -0,0 +1,19 @@ +line 17 column 13 - Error: attribute "valign" not allowed for HTML5 +line 18 column 17 - Error: attribute "width" not allowed for HTML5 +line 18 column 17 - Error: attribute "align" not allowed for HTML5 +Info: Document content looks like HTML5 +Tidy found 0 warnings and 3 errors! + +This document has errors that must be fixed before +using HTML Tidy to generate a tidied up version. + +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 diff --git a/regression_testing/cases/github-expects/case-729b.html b/regression_testing/cases/github-expects/case-729b.html new file mode 100644 index 0000000..776bf5f --- /dev/null +++ b/regression_testing/cases/github-expects/case-729b.html @@ -0,0 +1,21 @@ + + + + +Alignment + + + + + + +
text
+ + diff --git a/regression_testing/cases/github-expects/case-729b.txt b/regression_testing/cases/github-expects/case-729b.txt new file mode 100644 index 0000000..65cb35a --- /dev/null +++ b/regression_testing/cases/github-expects/case-729b.txt @@ -0,0 +1,17 @@ +line 18 column 17 - Warning: attribute "align" not allowed for HTML5 +line 17 column 13 - Warning: attribute "valign" not allowed for HTML5 +line 18 column 17 - Warning: attribute "width" not allowed for HTML5 +line 18 column 17 - Warning: attribute "align" not allowed for HTML5 +Info: Document content looks like HTML5 +Tidy found 4 warnings and 0 errors! + +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