From ffc9730a484d3b30c9c1b8ef3366b715e6808bcd Mon Sep 17 00:00:00 2001 From: Smitty Date: Thu, 29 Feb 2024 01:02:41 -0500 Subject: tidy: Fix WHATWG replacement links (#31449) --- python/tidy/test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/tidy/test.py') diff --git a/python/tidy/test.py b/python/tidy/test.py index 490c77edec9..92f9494013f 100644 --- a/python/tidy/test.py +++ b/python/tidy/test.py @@ -70,8 +70,8 @@ class CheckTidiness(unittest.TestCase): def test_whatwg_link(self): errors = tidy.collect_errors_for_files(iterFile('whatwg_link.rs'), [], [tidy.check_by_line], print_text=False) - self.assertTrue('link to WHATWG may break in the future, use this format instead:' in next(errors)[2]) - self.assertTrue('links to WHATWG single-page url, change to multi page:' in next(errors)[2]) + self.assertEqual('link to WHATWG may break in the future, use this format instead: https://html.spec.whatwg.org/multipage/#dom-context-2d-putimagedata', next(errors)[2]) + self.assertEqual('links to WHATWG single-page url, change to multi page: https://html.spec.whatwg.org/multipage/#typographic-conventions', next(errors)[2]) self.assertNoMoreErrors(errors) def test_license(self): -- cgit v1.2.3