HTCT

HTCT

[2] HTCT is a test case description format, which is a generalization of the format adopted by HTML parser test suite.

Reference implementations

[1] wakaba/testdataparser () https://github.com/wakaba/testdataparser

An HTCT parser implementation in Perl.

[3] samijs/sami-test.js at master · wakaba/samijs, https://github.com/wakaba/samijs/blob/master/sami/script/sami-test.js#L7

An HTCT parser implementation in JavaScript.

Tests

Tests for HTCT parser's interpretation of HTCT documents.

HTCT and HTML parser test data format

[6] html5lib-tests/README.md at master · html5lib/html5lib-tests · GitHub, https://github.com/html5lib/html5lib-tests/blob/master/tree-construction/README.md

Descriptions for the original format. Note that, unlike the original format, HTCT does not hardcode any specific section name describing test cases.

[7] perl-web-markup/html-tree.t at master · manakai/perl-web-markup, https://github.com/manakai/perl-web-markup/blob/master/t/parsing/html-tree.t

This test script (written in Perl) uses the Test::HTCT::Parser Perl module to parse html5lib's HTML parsing test data.

Notes