]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/task-lists.rs
Rollup merge of #107724 - klensy:imports, r=Mark-Simulacrum
[rust.git] / tests / rustdoc / task-lists.rs
1 // ignore-tidy-linelength
2 // FIXME: this doesn't test as much as I'd like; ideally it would have these query too:
3   // has task_lists/index.html '//li/input[@type="checkbox" and disabled]/following-sibling::text()' 'a'
4   // has task_lists/index.html '//li/input[@type="checkbox"]/following-sibling::text()' 'b'
5 // Unfortunately that requires LXML, because the built-in xml module doesn't support all of xpath.
6
7 // @has task_lists/index.html '//ul/li/input[@type="checkbox"]' ''
8 // @has task_lists/index.html '//ul/li/input[@disabled]' ''
9 // @has task_lists/index.html '//ul/li' 'a'
10 // @has task_lists/index.html '//ul/li' 'b'
11 //! This tests 'task list' support, a common markdown extension.
12 //! - [ ] a
13 //! - [x] b