Skip to content

Commit bdbaeae

Browse files
Fix rustdoc GUI test
1 parent 353aff4 commit bdbaeae

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

tests/rustdoc-gui/search-result-color.goml

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ define-function: (
140140
},
141141
)
142142

143-
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html?search=coo"
143+
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html?search=fo"
144144

145145
// This is needed so that the text color is computed.
146146
show-text: true
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Checks that the "keyword" results have the expected text alongside them.
22
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
3-
write-into: (".search-input", "auto")
3+
write-into: (".search-input", "for")
44
// To be SURE that the search will be run.
55
press-key: 'Enter'
66
// Waiting for the search results to appear...
77
wait-for: "#search-tabs"
8-
assert-text: (".result-keyword .result-name", "keyword auto")
8+
assert-text: (".result-keyword .result-name", "keyword for")

tests/rustdoc-gui/search-tab.goml

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ call-function: ("check-colors", {
7878
set-window-size: (851, 600)
7979

8080
// Check the size and count in tabs
81-
assert-text: ("#search-tabs > button:nth-child(1) > .count", " (25) ")
81+
assert-text: ("#search-tabs > button:nth-child(1) > .count", " (26) ")
8282
assert-text: ("#search-tabs > button:nth-child(2) > .count", " (6)  ")
8383
assert-text: ("#search-tabs > button:nth-child(3) > .count", " (0)  ")
8484
store-property: ("#search-tabs > button:nth-child(1)", {"offsetWidth": buttonWidth})

tests/rustdoc-gui/src/test_docs/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ pub enum AnEnum {
156156
WithVariants { and: usize, sub: usize, variants: usize },
157157
}
158158

159-
#[doc(keyword = "auto")]
159+
#[doc(keyword = "for")]
160160
/// Some keyword.
161161
pub mod keyword {}
162162

0 commit comments

Comments
 (0)