about summary refs log tree commit diff
path: root/tests/rustdoc-gui/sidebar-source-code.goml
diff options
context:
space:
mode:
authorJanis <janis@nirgendwo.xyz>2025-09-01 14:09:14 +0200
committerJanis <janis@nirgendwo.xyz>2025-09-02 01:38:23 +0200
commitf67e29e5a82d5272a03028c5e4a91fbe2bbab81f (patch)
tree00e25aec869ee39475573664ac563f97eeb902f3 /tests/rustdoc-gui/sidebar-source-code.goml
parent154037ffb82714a8d6264a9153622637b170c706 (diff)
downloadrust-f67e29e5a82d5272a03028c5e4a91fbe2bbab81f.tar.gz
rust-f67e29e5a82d5272a03028c5e4a91fbe2bbab81f.zip
squash fix `render_call_locations` panic when default span points at file outside of local_sources
add test against crashing with --html-after-content file

correctly add --html-after-content to env not args

formatting fix for rustdoc-call-locations-after-content/rmake.rs

Use local crate source file as default span in `render_call_locations`

- avoids unwrapping the first file added to the source map as a local file in
`href_from_span`

move test to tests/rustdoc-gui, rename to scrape_examples_ice

test link is correct

use rustdocflags, rename path in example, track lock file

factor out duplicate function calls

use compile-flags to make sure the after.html file is actually included in the rustdoc call

fix goml go-to path

increment assert-count in sidebar-source-code.goml

adjust crate-search width in search-result-display.goml

renamed Bar in scrape_examples_ice test

make crate name shorter ..
Diffstat (limited to 'tests/rustdoc-gui/sidebar-source-code.goml')
-rw-r--r--tests/rustdoc-gui/sidebar-source-code.goml2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/rustdoc-gui/sidebar-source-code.goml b/tests/rustdoc-gui/sidebar-source-code.goml
index 3f6914a89d6..a3c19d8c6d0 100644
--- a/tests/rustdoc-gui/sidebar-source-code.goml
+++ b/tests/rustdoc-gui/sidebar-source-code.goml
@@ -71,7 +71,7 @@ assert: "//*[@class='dir-entry' and @open]/*[normalize-space()='sub_mod']"
 // Only "another_folder" should be "open" in "lib2".
 assert: "//*[@class='dir-entry' and not(@open)]/*[normalize-space()='another_mod']"
 // All other trees should be collapsed.
-assert-count: ("//*[@id='src-sidebar']/details[not(normalize-space()='lib2') and not(@open)]", 12)
+assert-count: ("//*[@id='src-sidebar']/details[not(normalize-space()='lib2') and not(@open)]", 13)
 
 // We now switch to mobile mode.
 set-window-size: (600, 600)