about summary refs log tree commit diff
path: root/src/test/rustdoc-gui/sidebar-source-code.goml
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2023-01-03 19:46:40 -0700
committerMichael Howell <michael@notriddle.com>2023-01-03 20:10:14 -0700
commit49111eced698e7df62756af364f799609cae3aa7 (patch)
treea70cb99514ee63de94f588bb24fb467e2d56375c /src/test/rustdoc-gui/sidebar-source-code.goml
parentab10908e8c32c4350b07fc6892b9e5f7e9ffa881 (diff)
downloadrust-49111eced698e7df62756af364f799609cae3aa7.tar.gz
rust-49111eced698e7df62756af364f799609cae3aa7.zip
rustdoc: fix buggy JS check for absolute URL
The old code did the wrong thing when faced with a crate named "http".
Diffstat (limited to 'src/test/rustdoc-gui/sidebar-source-code.goml')
-rw-r--r--src/test/rustdoc-gui/sidebar-source-code.goml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/rustdoc-gui/sidebar-source-code.goml b/src/test/rustdoc-gui/sidebar-source-code.goml
index d5f57ed6102..6bc07fbae04 100644
--- a/src/test/rustdoc-gui/sidebar-source-code.goml
+++ b/src/test/rustdoc-gui/sidebar-source-code.goml
@@ -73,7 +73,7 @@ assert: "//*[@class='dir-entry' and @open]/*[text()='sub_mod']"
 // Only "another_folder" should be "open" in "lib2".
 assert: "//*[@class='dir-entry' and not(@open)]/*[text()='another_mod']"
 // All other trees should be collapsed.
-assert-count: ("//*[@id='source-sidebar']/details[not(text()='lib2') and not(@open)]", 7)
+assert-count: ("//*[@id='source-sidebar']/details[not(text()='lib2') and not(@open)]", 8)
 
 // We now switch to mobile mode.
 size: (600, 600)