aboutsummaryrefslogtreecommitdiffstats
path: root/python/tidy/test.py
diff options
context:
space:
mode:
authorSmitty <me@iter.ca>2024-02-29 01:02:41 -0500
committerGitHub <noreply@github.com>2024-02-29 06:02:41 +0000
commitffc9730a484d3b30c9c1b8ef3366b715e6808bcd (patch)
tree0b18e2776c248a05fe7d871702f92caf2e0b6845 /python/tidy/test.py
parent51b331385488f42b5b3263e6e4e7f4af39e1ecf1 (diff)
downloadservo-ffc9730a484d3b30c9c1b8ef3366b715e6808bcd.tar.gz
servo-ffc9730a484d3b30c9c1b8ef3366b715e6808bcd.zip
tidy: Fix WHATWG replacement links (#31449)
Diffstat (limited to 'python/tidy/test.py')
-rw-r--r--python/tidy/test.py4
1 files changed, 2 insertions, 2 deletions
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):