[wp-trac] [WordPress Trac] #60227: HTML API: Add external test suite
WordPress Trac
noreply at wordpress.org
Tue Apr 16 12:07:03 UTC 2024
#60227: HTML API: Add external test suite
--------------------------------------+----------------------
Reporter: jonsurrell | Owner: dmsnell
Type: task (blessed) | Status: closed
Priority: normal | Milestone: 6.6
Component: Build/Test Tools | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+----------------------
Changes (by dmsnell):
* owner: (none) => dmsnell
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"58010" 58010]:
{{{
#!CommitTicketReference repository="" revision="58010"
HTML API: Validate HTML Processor against external test suite from
html5lib.
In this patch, the test suite from html5lib validates the tree-
construction
steps in the HTML Processor to ensure that they are behaving according to
the
HTML specification. This suite of tests is also used by the servo project
to
test its html5ever package.
A new test module in the HTML API transforms HTML Processor output to
match
the expected tree shape from the external tests. For cases where there are
tests validating behaviors of unsupported HTML tags and constructs, the
tests
are marked as skipped. As the HTML API continues to expand its own
support,
the number of skipped tests will automatically shrink down towards zero.
Additional tests are skipped through the `SKIP_TEST` array in the test
runner.
Fixes #60227.
See #58517.
Props azaozz, costdev, dmsnell, hellofromtonya, jonsurrell, jorbin,
swisspidy.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60227#comment:40>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list