[wp-trac] [WordPress Trac] #63527: Tests: Add test assertion to compare HTML for equivalence
WordPress Trac
noreply at wordpress.org
Thu Sep 4 14:49:07 UTC 2025
#63527: Tests: Add test assertion to compare HTML for equivalence
--------------------------------------+------------------------------
Reporter: Bernhard Reiter | Owner: Bernhard Reiter
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.9
Component: Build/Test Tools | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------------
Changes (by jonsurrell):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"60707" 60707]:
{{{
#!CommitTicketReference repository="" revision="60707"
Build/Test Tools: Ensure assertEqualHTML fallback render can be reached.
`assertEqualHTML` catches `Exception`s and attempts to re-parse the HTML
with the `Dom\HtmlDocument` class. Ensure that the fallback render is
reachable by throwing `Exception` instead of `Error` in the tree builder
function.
Developed in https://github.com/WordPress/wordpress-develop/pull/9273.
Follow-up to [60295].
Props jonsurrell, bernhard-reiter, dmsnell.
Fixes #63527.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63527#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list