mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
tidy: Fix WHATWG replacement links (#31449)
This commit is contained in:
parent
51b3313854
commit
ffc9730a48
2 changed files with 4 additions and 4 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue