Skip to content

Commit e340478

Browse files
Improve tests
1 parent f6c728f commit e340478

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/test/rustdoc-gui/anchors.goml

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// This test is to ensure that the anchors (`§`) have the expected color.
22
goto: file://|DOC_PATH|/test_docs/struct.HeavilyDocumentedStruct.html
3+
show-text: true
34

45
// This is needed to ensure that the text color is computed.
56
show-text: true

src/test/rustdoc-gui/search-filter.goml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
goto: file://|DOC_PATH|/test_docs/index.html
2+
show-text: true
23
write: (".search-input", "test")
34
// Waiting for the search results to appear...
45
wait-for: "#titles"
56
assert-text: ("#results .externcrate", "test_docs")
6-
text: (".search-input", "")
7+
8+
goto: file://|DOC_PATH|/test_docs/index.html
79
// We now want to change the crate filter.
810
click: "#crate-search"
911
// We select "lib2" option then press enter to change the filter.

0 commit comments

Comments
 (0)