-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of #85191 - GuillaumeGomez:improve-rustdoc-gui-tester, r…
…=Mark-Simulacrum Improve rustdoc gui tester I cherry-picked the commit from #84834 (and modified it a bit). I also used this opportunity to update it to last version (forgot to update GUI test in #85074, really can't wait to make #84586 finally work). cc `@Mark-Simulacrum` for the changes in bootstrap. r? `@jsha`
- Loading branch information
Showing
16 changed files
with
43 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
goto: file://|DOC_PATH|/index.html | ||
goto: file://|DOC_PATH|/test_docs/index.html | ||
click: ".srclink" | ||
assert: (".line-numbers", 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
goto: file://|DOC_PATH|/index.html | ||
goto: file://|DOC_PATH|/test_docs/index.html | ||
assert: ("#functions") | ||
goto: ./struct.Foo.html | ||
assert: ("div.type-decl") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
// This test ensures that the impl blocks are open by default. | ||
goto: file://|DOC_PATH|/struct.Foo.html | ||
goto: file://|DOC_PATH|/test_docs/struct.Foo.html | ||
assert: ("#main > details.implementors-toggle", "open", "") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
goto: file://|DOC_PATH|/index.html | ||
goto: file://|DOC_PATH|/test_docs/index.html | ||
goto: ./fn.check_list_code_block.html | ||
assert: ("pre.rust.fn") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
src/test/rustdoc-gui/search-tab-selection-if-current-is-empty.goml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
goto: file://|DOC_PATH|/index.html | ||
goto: file://|DOC_PATH|/test_docs/index.html | ||
assert: ("#main > details.top-doc", "open", "") | ||
click: "#toggle-all-docs" | ||
wait-for: 5000 | ||
assert: ("#main > div.docblock.hidden-by-usual-hider") | ||
wait-for: 1000 | ||
// This is now collapsed so there shouldn't be the "open" attribute on details. | ||
assert-false: ("#main > details.top-doc", "open", "") | ||
click: "#toggle-all-docs" | ||
wait-for: 5000 | ||
assert: ("#main > div.docblock.hidden-by-usual-hider", 0) | ||
wait-for: 1000 | ||
// Not collapsed anymore so the "open" attribute should be back. | ||
assert: ("#main > details.top-doc", "open", "") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters