diff --git a/tests/rustdoc-js-std/filter-macro-attr-derive.js b/tests/rustdoc-js-std/filter-macro-attr-derive.js new file mode 100644 index 000000000000..4c8ec77030b4 --- /dev/null +++ b/tests/rustdoc-js-std/filter-macro-attr-derive.js @@ -0,0 +1,9 @@ +// This test ensures that filtering on "macro" will also include attribute and derive +// macros. + +const EXPECTED = { + 'query': 'macro:debug', + 'others': [ + { 'path': 'std::fmt', 'name': 'Debug', 'href': '../std/fmt/derive.Debug.html' }, + ], +};