about summary refs log tree commit diff
path: root/tests/rustdoc/empty-mod-private.rs
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2024-09-02 19:42:28 -0700
committerMichael Howell <michael@notriddle.com>2024-09-10 17:56:06 -0700
commit5b1b2e97e36c4966b9c6c30d5679f6da76503fc7 (patch)
treec547e08dcc1f152f023b0b308fb87964f7926fb4 /tests/rustdoc/empty-mod-private.rs
parentd05323c7b4ebeaeaffe3ea8e0d02a8b01db67ddd (diff)
downloadrust-5b1b2e97e36c4966b9c6c30d5679f6da76503fc7.tar.gz
rust-5b1b2e97e36c4966b9c6c30d5679f6da76503fc7.zip
rustdoc: make the header show all three buttons
This tweaks it to use less space for the breadcrumbs.
Diffstat (limited to 'tests/rustdoc/empty-mod-private.rs')
-rw-r--r--tests/rustdoc/empty-mod-private.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/rustdoc/empty-mod-private.rs b/tests/rustdoc/empty-mod-private.rs
index 4e408e3d424..2b446deda33 100644
--- a/tests/rustdoc/empty-mod-private.rs
+++ b/tests/rustdoc/empty-mod-private.rs
@@ -2,15 +2,18 @@
 
 //@ has 'empty_mod_private/index.html' '//a[@href="foo/index.html"]' 'foo'
 //@ hasraw 'empty_mod_private/sidebar-items.js' 'foo'
-//@ matches 'empty_mod_private/foo/index.html' '//h1' 'Module empty_mod_private::foo'
+//@ matches 'empty_mod_private/foo/index.html' '//h1' 'Module foo'
+//@ matches - '//*[@class="rustdoc-breadcrumbs"]' 'empty_mod_private::'
 mod foo {}
 
 //@ has 'empty_mod_private/index.html' '//a[@href="bar/index.html"]' 'bar'
 //@ hasraw 'empty_mod_private/sidebar-items.js' 'bar'
-//@ matches 'empty_mod_private/bar/index.html' '//h1' 'Module empty_mod_private::bar'
+//@ matches 'empty_mod_private/bar/index.html' '//h1' 'Module bar'
+//@ matches - '//*[@class="rustdoc-breadcrumbs"]' 'empty_mod_private::'
 mod bar {
     //@ has 'empty_mod_private/bar/index.html' '//a[@href="baz/index.html"]' 'baz'
     //@ hasraw 'empty_mod_private/bar/sidebar-items.js' 'baz'
-    //@ matches 'empty_mod_private/bar/baz/index.html' '//h1' 'Module empty_mod_private::bar::baz'
+    //@ matches 'empty_mod_private/bar/baz/index.html' '//h1' 'Module baz'
+    //@ matches - '//*[@class="rustdoc-breadcrumbs"]' 'empty_mod_private::bar::'
     mod baz {}
 }