summaryrefslogtreecommitdiffstatshomepage
path: root/wp-includes/js/jquery/ui.mouse.js
diff options
context:
space:
mode:
authorbernhard-reiter <bernhard-reiter@git.wordpress.org>2025-06-10 10:23:38 +0000
committerbernhard-reiter <bernhard-reiter@git.wordpress.org>2025-06-10 10:23:38 +0000
commitfe6c27bbb97b7872642375356a006fe62b8f76c7 (patch)
tree7aedd2d55b393b28b67d9c8cdc1f3be732b8d818 /wp-includes/js/jquery/ui.mouse.js
parent20e4872868780fd9246d8a7ec5ae3072b69483ea (diff)
downloadwordpress-fe6c27bbb97b7872642375356a006fe62b8f76c7.tar.gz
wordpress-fe6c27bbb97b7872642375356a006fe62b8f76c7.zip
Tests: Add new `assertEqualHTML` assertion.
Add a new `assertEqualHTML` method to `WP_UnitTestClass` for tests comparing HTML (potentially including block markup). Internally, the assertion builds a deterministic tree string representation of the markup (using the HTML API) and compares the results. The format of the tree is inspired by the HTML5lib-tests tree format. It is extended with a special representation of block delimiters and their attributes. This format also makes it easier to visually spot the differences between the two strings if the assertion fails. Finally, this changeset updates `Tests_Dependencies_Scripts` to remove its `assertEqualMarkup` and `parse_markup_fragment` methods, and to use the newly introduced `assertEqualHTML` instead. Props bernhard-reiter, jonsurrell, dmsnell, jorbin, gziolo. Fixes #63527. git-svn-id: https://develop.svn.wordpress.org/trunk@60295 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to 'wp-includes/js/jquery/ui.mouse.js')
0 files changed, 0 insertions, 0 deletions