Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 59120d0

Browse files
Update to new browser-ui-test version
1 parent 6bb6b81 commit 59120d0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+267
-249
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.16.11
1+
0.17.0

tests/rustdoc-gui/anchors.goml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
define-function: (
44
"check-colors",
5-
(theme, main_color, title_color, main_heading_color, main_heading_type_color, src_link_color, sidebar_link_color),
5+
[theme, main_color, title_color, main_heading_color, main_heading_type_color, src_link_color, sidebar_link_color],
66
block {
77
go-to: "file://" + |DOC_PATH| + "/staged_api/struct.Foo.html"
88
// This is needed to ensure that the text color is computed.

tests/rustdoc-gui/code-color.goml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ show-text: true
88

99
define-function: (
1010
"check-colors",
11-
(theme, doc_code_color, doc_inline_code_color),
11+
[theme, doc_code_color, doc_inline_code_color],
1212
block {
1313
// Set the theme.
1414
set-local-storage: {"rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false"}

tests/rustdoc-gui/codeblock-tooltip.goml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ show-text: true
44

55
define-function: (
66
"check-colors",
7-
(theme, background, color, border),
7+
[theme, background, color, border],
88
block {
99
// Setting the theme.
1010
set-local-storage: {"rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false"}

tests/rustdoc-gui/cursor.goml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ assert-css: ("#toggle-all-docs", {"cursor": "pointer"})
88
assert-css: ("#copy-path", {"cursor": "pointer"})
99

1010
// the search tabs
11-
write: (".search-input", "Foo")
11+
write-into: (".search-input", "Foo")
1212
// To be SURE that the search will be run.
1313
press-key: 'Enter'
1414
// Waiting for the search results to appear...

tests/rustdoc-gui/docblock-code-block-line-number.goml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ assert-false: "pre.example-line-numbers"
1010
// Let's now check some CSS properties...
1111
define-function: (
1212
"check-colors",
13-
(theme, color),
13+
[theme, color],
1414
block {
1515
// We now set the setting to show the line numbers on code examples.
1616
set-local-storage: {

tests/rustdoc-gui/docblock-table.goml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ compare-elements-css: (".impl-items .docblock table td", ".top-doc .docblock tab
66

77
define-function: (
88
"check-colors",
9-
(theme, border_color, zebra_stripe_color),
9+
[theme, border_color, zebra_stripe_color],
1010
block {
1111
set-local-storage: {"rustdoc-use-system-theme": "false", "rustdoc-theme": |theme|}
1212
reload:

tests/rustdoc-gui/escape-key.goml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// current content displayed.
33
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
44
// First, we check that the search results are hidden when the Escape key is pressed.
5-
write: (".search-input", "test")
5+
write-into: (".search-input", "test")
66
// To be SURE that the search will be run.
77
press-key: 'Enter'
88
wait-for: "#search h1" // The search element is empty before the first search

tests/rustdoc-gui/globals.goml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ assert-window-property: {"srcIndex": null}
1010

1111
// Form input
1212
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
13-
write: (".search-input", "Foo")
13+
write-into: (".search-input", "Foo")
1414
press-key: 'Enter'
1515
wait-for: "#search-tabs"
1616
assert-window-property-false: {"searchIndex": null}

tests/rustdoc-gui/go-to-collapsed-elem.goml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ set-property: ("#implementations-list .implementors-toggle", {"open": "false"})
99
click: "//*[@class='sidebar']//a[@href='#method.must_use']"
1010
assert-property: ("#implementations-list .implementors-toggle", {"open": "true"})
1111

12-
define-function: ("collapsed-from-search", (), block {
12+
define-function: ("collapsed-from-search", [], block {
1313
// Now we do the same through search result.
1414
// First we reload the page without the anchor in the URL.
1515
go-to: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html"
1616
// Then we collapse the section again...
1717
set-property: ("#implementations-list .implementors-toggle", {"open": "false"})
1818
// Then we run the search.
19-
write: (".search-input", "foo::must_use")
19+
write-into: (".search-input", "foo::must_use")
2020
wait-for: "//*[@id='search']//a[@href='../test_docs/struct.Foo.html#method.must_use']"
2121
click: "//*[@id='search']//a[@href='../test_docs/struct.Foo.html#method.must_use']"
2222
assert-property: ("#implementations-list .implementors-toggle", {"open": "true"})

0 commit comments

Comments
 (0)