about summary refs log tree commit diff
path: root/src/test/rustdoc/remove-url-from-headings.rs
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-17/+0
2022-08-13rustdoc: Fix incorrect usage of `@!has` and `@!matches`Noah Lev-1/+1
`@!has` (and `@!matches`) with two arguments used to treat the second argument as a literal string of HTML code. Now, that feature has been renamed into `@!hasraw` (and `@!matchesraw`), and the arity-2 `@!has` version is an error. These uses thought the second argument was being treated as an XPath, as with the arity-3 version, but in fact was being treated as literal HTML. Because these were checking for the *absence* of the string, the tests silently did nothing -- an XPath string won't ever be showing up in the test's generated HTML!
2022-08-13Update `@!has` name in testsNoah Lev-1/+1
2020-12-31Fix tests that incorrectly used `!@has` instead of `@!has`Camelid-1/+1
The command is `@!has`, not `!@has`. I don't think these checks were doing anything before! Ideally we would accept `!@has` as well, or at least fail tests that use `!@has`. The current behavior seems to be silently ignoring the check, which is very confusing.
2020-01-17Extend url in heading test a bitGuillaume Gomez-1/+1
2020-01-16Extend url in titles testGuillaume Gomez-0/+5
2020-01-14Prevent urls in headingsGuillaume Gomez-0/+12