Skip to content

Commit e7271f4

Browse files
committed
Auto merge of rust-lang#110194 - GuillaumeGomez:update-browser-ui-test, r=notriddle
Update browser-ui-test version This update add the support for expressions, so we can now do this: ``` assert: 1 > 2 && ["a"] != ["b", "c"] ``` It also improved commands naming and updated puppeteer version. r? `@notriddle`
2 parents 9df3a39 + 010fa00 commit e7271f4

File tree

105 files changed

+309
-309
lines changed

Some content is hidden

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

105 files changed

+309
-309
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.14.6
1+
0.15.0

tests/rustdoc-gui/anchor-navigable.goml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// anchor and the `impl Foo`. If there were a gap, this would cause an annoying
55
// problem: you hover `impl Foo` to see the anchor, then when you move your
66
// mouse to the left, the anchor disappears before you reach it.
7-
goto: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html"
7+
go-to: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html"
88
// We check that ".item-info" is bigger than its content.
99
move-cursor-to: ".impl"
1010
assert-property: (".impl > a.anchor", {"offsetWidth": "8"})

tests/rustdoc-gui/anchors.goml

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ define-function: (
44
"check-colors",
55
(theme, main_color, title_color, main_heading_color, main_heading_type_color, src_link_color, sidebar_link_color),
66
block {
7-
goto: "file://" + |DOC_PATH| + "/staged_api/struct.Foo.html"
7+
go-to: "file://" + |DOC_PATH| + "/staged_api/struct.Foo.html"
88
// This is needed to ensure that the text color is computed.
99
show-text: true
1010

1111
// Setting the theme.
12-
local-storage: {"rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false"}
12+
set-local-storage: {"rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false"}
1313
// We reload the page so the local storage settings are being used.
1414
reload:
1515

@@ -48,9 +48,9 @@ define-function: (
4848
{"color": |src_link_color|, "text-decoration": "none solid " + |src_link_color|},
4949
)
5050

51-
goto: "file://" + |DOC_PATH| + "/test_docs/struct.HeavilyDocumentedStruct.html"
51+
go-to: "file://" + |DOC_PATH| + "/test_docs/struct.HeavilyDocumentedStruct.html"
5252
// Since we changed page, we need to set the theme again.
53-
local-storage: {"rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false"}
53+
set-local-storage: {"rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false"}
5454
// We reload the page so the local storage settings are being used.
5555
reload:
5656

tests/rustdoc-gui/basic-code.goml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Small test to ensure the "src-line-numbers" element is only present once on
22
// the page.
3-
goto: "file://" + |DOC_PATH| + "/test_docs/index.html"
3+
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
44
click: ".srclink"
55
wait-for: ".src-line-numbers"
66
assert-count: (".src-line-numbers", 1)

tests/rustdoc-gui/check-code-blocks-margin.goml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This test ensures that the docblock elements have the appropriate left margin.
2-
goto: "file://" + |DOC_PATH| + "/test_docs/fn.foo.html"
2+
go-to: "file://" + |DOC_PATH| + "/test_docs/fn.foo.html"
33
// The top docblock elements shouldn't have left margin...
44
assert-css: ("#main-content .item-decl", {"margin-left": "0px"})
55
// ... but all the others should!

tests/rustdoc-gui/check-stab-in-docblock.goml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// This test checks that using `.stab` attributes in `.docblock` elements doesn't
22
// create scrollable paragraphs.
3-
goto: "file://" + |DOC_PATH| + "/test_docs/index.html"
3+
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
44
// Needs the text to be display to check for scrollable content.
55
show-text: true
6-
size: (786, 600)
6+
set-window-size: (786, 600)
77
// Confirms that there 3 paragraphs.
88
assert-count: (".top-doc .docblock p", 3)
99
// Checking that there is no scrollable content.

tests/rustdoc-gui/check_info_sign_position.goml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This test checks the position of the information on the code blocks (like
22
// `compile_fail` or `ignore`).
3-
goto: "file://" + |DOC_PATH| + "/test_docs/index.html"
4-
goto: "./fn.check_list_code_block.html"
3+
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
4+
go-to: "./fn.check_list_code_block.html"
55
// If the codeblock is the first element of the docblock, the information tooltip must have
66
// have some top margin to avoid going over the toggle (the "[+]").
77
assert-css: (".docblock > .example-wrap.compile_fail .tooltip", { "margin-top": "16px" })

tests/rustdoc-gui/code-blocks-overflow.goml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// This test ensures that codeblocks content don't overflow.
2-
goto: "file://" + |DOC_PATH| + "/lib2/sub_mod/struct.Foo.html"
3-
size: (1080, 600)
2+
go-to: "file://" + |DOC_PATH| + "/lib2/sub_mod/struct.Foo.html"
3+
set-window-size: (1080, 600)
44
// There should be two codeblocks: a rust one and a non-rust one.
55
assert-count: (".docblock > .example-wrap", 2)
66
assert: ".docblock > .example-wrap > .language-txt"

tests/rustdoc-gui/code-color.goml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// check that the rule isn't applied on other "<code>" elements.
33
//
44
// While we're at it, we also check it for the other themes.
5-
goto: "file://" + |DOC_PATH| + "/test_docs/fn.foo.html"
5+
go-to: "file://" + |DOC_PATH| + "/test_docs/fn.foo.html"
66
// If the text isn't displayed, the browser doesn't compute color style correctly...
77
show-text: true
88

@@ -11,7 +11,7 @@ define-function: (
1111
(theme, doc_code_color, doc_inline_code_color),
1212
block {
1313
// Set the theme.
14-
local-storage: {"rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false"}
14+
set-local-storage: {"rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false"}
1515
// We reload the page so the local storage settings are being used.
1616
reload:
1717
assert-css: (".docblock pre > code", {"color": |doc_code_color|}, ALL)
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This test checks that the source code pages sidebar toggle is working as expected.
2-
goto: "file://" + |DOC_PATH| + "/test_docs/index.html"
2+
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
33
click: ".srclink"
44
wait-for: "#src-sidebar-toggle"
55
click: "#src-sidebar-toggle"
6-
fail: true
6+
expect-failure: true
77
assert-css: ("#source-sidebar", { "left": "-300px" })

tests/rustdoc-gui/code-tags.goml

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@
33
// We need to disable this check because `implementors/test_docs/trait.AnotherOne.js`
44
// doesn't exist.
55
fail-on-request-error: false
6-
goto: "file://" + |DOC_PATH| + "/test_docs/fn.foo.html"
7-
size: (1080, 600)
6+
go-to: "file://" + |DOC_PATH| + "/test_docs/fn.foo.html"
7+
set-window-size: (1080, 600)
88
// There should be four doc codeblocks.
99
// Check that their content is inside <pre><code>
1010
assert-count: (".example-wrap pre > code", 4)
1111
// Check that function signature is inside <pre><code>
1212
assert: "pre.rust.item-decl > code"
1313

14-
goto: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html"
14+
go-to: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html"
1515
assert: "pre.rust.item-decl > code"
1616

17-
goto: "file://" + |DOC_PATH| + "/test_docs/enum.AnEnum.html"
17+
go-to: "file://" + |DOC_PATH| + "/test_docs/enum.AnEnum.html"
1818
assert: "pre.rust.item-decl > code"
1919

20-
goto: "file://" + |DOC_PATH| + "/test_docs/trait.AnotherOne.html"
20+
go-to: "file://" + |DOC_PATH| + "/test_docs/trait.AnotherOne.html"
2121
assert: "pre.rust.item-decl > code"
2222

23-
goto: "file://" + |DOC_PATH| + "/test_docs/type.SomeType.html"
23+
go-to: "file://" + |DOC_PATH| + "/test_docs/type.SomeType.html"
2424
assert: "pre.rust.item-decl > code"

tests/rustdoc-gui/codeblock-sub.goml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Test that code blocks nested within <sub> do not have a line height of 0.
2-
goto: "file://" + |DOC_PATH| + "/test_docs/codeblock_sub/index.html"
2+
go-to: "file://" + |DOC_PATH| + "/test_docs/codeblock_sub/index.html"
33

44
store-property: (codeblock_sub_1, "#codeblock-sub-1", "offsetHeight")
55
assert-property-false: ("#codeblock-sub-3", { "offsetHeight": |codeblock_sub_1| })

tests/rustdoc-gui/codeblock-tooltip.goml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// Checking the colors of the codeblocks tooltips.
2-
goto: "file://" + |DOC_PATH| + "/test_docs/fn.foo.html"
2+
go-to: "file://" + |DOC_PATH| + "/test_docs/fn.foo.html"
33
show-text: true
44

55
define-function: (
66
"check-colors",
77
(theme, background, color, border),
88
block {
99
// Setting the theme.
10-
local-storage: {"rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false"}
10+
set-local-storage: {"rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false"}
1111
reload:
1212

1313
// compile_fail block

tests/rustdoc-gui/cursor.goml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This test ensures that several clickable items actually have the pointer cursor.
2-
goto: "file://" + |DOC_PATH| + "/lib2/struct.Foo.html"
2+
go-to: "file://" + |DOC_PATH| + "/lib2/struct.Foo.html"
33

44
// the `[+]/[-]` button
55
assert-css: ("#toggle-all-docs", {"cursor": "pointer"})
@@ -16,9 +16,9 @@ wait-for: "#search-tabs"
1616
assert-css: ("#search-tabs > button", {"cursor": "pointer"})
1717

1818
// mobile sidebar toggle button
19-
size: (500, 700)
19+
set-window-size: (500, 700)
2020
assert-css: (".sidebar-menu-toggle", {"cursor": "pointer"})
2121

2222
// the sidebar toggle button on the source code pages
23-
goto: "file://" + |DOC_PATH| + "/src/lib2/lib.rs.html"
23+
go-to: "file://" + |DOC_PATH| + "/src/lib2/lib.rs.html"
2424
assert-css: ("#src-sidebar-toggle > button", {"cursor": "pointer"})

tests/rustdoc-gui/default-settings.goml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// The "settings" crate uses "ayu" as default setting, which is what we will
44
// check.
5-
goto: "file://" + |DOC_PATH| + "/settings/index.html"
5+
go-to: "file://" + |DOC_PATH| + "/settings/index.html"
66
// Wait a bit to be sure the default theme is applied.
77
// If the theme isn't applied, the command will time out.
88
wait-for-css: ("body", {"background-color": "rgb(15, 20, 25)"})
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// If we have a long `<code>`, we need to ensure that it'll be fully displayed on mobile, meaning
22
// that it'll be on two lines.
33
emulate: "iPhone 8" // it has the following size: (375, 667)
4-
goto: "file://" + |DOC_PATH| + "/test_docs/long_code_block/index.html"
4+
go-to: "file://" + |DOC_PATH| + "/test_docs/long_code_block/index.html"
55
// We now check that the block is on two lines:
66
show-text: true // We need to enable text draw to be able to have the "real" size
77
// Little explanations for this test: if the text wasn't displayed on two lines, it would take
88
// around 20px (which is the font size).
99
assert-property: (".docblock p > code", {"offsetHeight": "44"})
1010

1111
// Same check, but where the long code block is also a link
12-
goto: "file://" + |DOC_PATH| + "/test_docs/long_code_block_link/index.html"
12+
go-to: "file://" + |DOC_PATH| + "/test_docs/long_code_block_link/index.html"
1313
assert-property: (".docblock p > a > code", {"offsetHeight": "44"})

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Checks that the setting "line numbers" is working as expected.
2-
goto: "file://" + |DOC_PATH| + "/test_docs/fn.foo.html"
2+
go-to: "file://" + |DOC_PATH| + "/test_docs/fn.foo.html"
33

44
// Otherwise, we can't check text color
55
show-text: true
@@ -13,7 +13,7 @@ define-function: (
1313
(theme, color),
1414
block {
1515
// We now set the setting to show the line numbers on code examples.
16-
local-storage: {
16+
set-local-storage: {
1717
"rustdoc-theme": |theme|,
1818
"rustdoc-use-system-theme": "false",
1919
"rustdoc-line-numbers": "true"

tests/rustdoc-gui/docblock-details.goml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This ensures that the `<details>`/`<summary>` elements are displayed as expected.
2-
goto: "file://" + |DOC_PATH| + "/test_docs/details/struct.Details.html"
2+
go-to: "file://" + |DOC_PATH| + "/test_docs/details/struct.Details.html"
33
show-text: true
4-
local-storage: {"rustdoc-theme": "dark", "rustdoc-use-system-theme": "false"}
4+
set-local-storage: {"rustdoc-theme": "dark", "rustdoc-use-system-theme": "false"}
55
reload:
66

77
// We first check that the headers in the `.top-doc` doc block still have their

tests/rustdoc-gui/docblock-table-overflow.goml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This test ensures that the type declaration content overflow is handled inside the <pre> directly.
2-
goto: "file://" + |DOC_PATH| + "/lib2/long_table/struct.Foo.html"
2+
go-to: "file://" + |DOC_PATH| + "/lib2/long_table/struct.Foo.html"
33
// We set a fixed size so there is no chance of "random" resize.
4-
size: (1100, 800)
4+
set-window-size: (1100, 800)
55
// Logically, the ".docblock" and the "<p>" should have the same scroll width.
66
compare-elements-property: (".top-doc .docblock", ".top-doc .docblock > p", ["scrollWidth"])
77
assert-property: (".top-doc .docblock", {"scrollWidth": "816"})

tests/rustdoc-gui/docblock-table.goml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This test checks the appearance of the tables in the doc comments.
2-
goto: "file://" + |DOC_PATH| + "/test_docs/doc_block_table/struct.DocBlockTable.html#method.func"
2+
go-to: "file://" + |DOC_PATH| + "/test_docs/doc_block_table/struct.DocBlockTable.html#method.func"
33

44
compare-elements-css: (".impl-items .docblock table th", ".top-doc .docblock table th", ["border"])
55
compare-elements-css: (".impl-items .docblock table td", ".top-doc .docblock table td", ["border"])
@@ -8,7 +8,7 @@ define-function: (
88
"check-colors",
99
(theme, border_color, zebra_stripe_color),
1010
block {
11-
local-storage: {"rustdoc-use-system-theme": "false", "rustdoc-theme": |theme|}
11+
set-local-storage: {"rustdoc-use-system-theme": "false", "rustdoc-theme": |theme|}
1212
reload:
1313
assert-css: (".top-doc .docblock table tbody tr:nth-child(1)", {
1414
"background-color": "rgba(0, 0, 0, 0)",

tests/rustdoc-gui/duplicate-macro-reexport.goml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This test ensures that there is no macro duplicates in the sidebar.
2-
goto: "file://" + |DOC_PATH| + "/test_docs/macro.a.html"
2+
go-to: "file://" + |DOC_PATH| + "/test_docs/macro.a.html"
33
// Waiting for the elements in the sidebar to be rendered.
44
wait-for: ".sidebar-elems .macro"
55
// Check there is only one macro named "a" listed in the sidebar.

tests/rustdoc-gui/enum-variants.goml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Verifies that there is non-zero margin on variants and their docblocks.
2-
goto: "file://" + |DOC_PATH| + "/test_docs/enum.WhoLetTheDogOut.html"
2+
go-to: "file://" + |DOC_PATH| + "/test_docs/enum.WhoLetTheDogOut.html"
33

44
assert-css: (".variants > .variant", {"margin": "0px 0px 12px"})
55
assert-css: (".variants > .docblock", {"margin": "0px 0px 32px 24px"})

tests/rustdoc-gui/escape-key.goml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// This test ensures that the "Escape" shortcut is handled correctly based on the
22
// current content displayed.
3-
goto: "file://" + |DOC_PATH| + "/test_docs/index.html"
3+
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.
55
write: (".search-input", "test")
66
// To be SURE that the search will be run.

tests/rustdoc-gui/font-weight.goml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This test checks that the font weight is correctly applied.
2-
goto: "file://" + |DOC_PATH| + "/lib2/struct.Foo.html"
2+
go-to: "file://" + |DOC_PATH| + "/lib2/struct.Foo.html"
33
assert-css: ("//*[@class='rust item-decl']//a[text()='Alias']", {"font-weight": "400"})
44
assert-css: (
55
"//*[@class='structfield small-section-header']//a[text()='Alias']",
@@ -9,13 +9,13 @@ assert-css: ("#method\.a_method > .code-header", {"font-weight": "600"})
99
assert-css: ("#associatedtype\.X > .code-header", {"font-weight": "600"})
1010
assert-css: ("#associatedconstant\.Y > .code-header", {"font-weight": "600"})
1111

12-
goto: "file://" + |DOC_PATH| + "/test_docs/type.SomeType.html"
12+
go-to: "file://" + |DOC_PATH| + "/test_docs/type.SomeType.html"
1313
assert-css: (".top-doc .docblock p", {"font-weight": "400"}, ALL)
1414

15-
goto: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html"
15+
go-to: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html"
1616
assert-css: (".impl-items .method > .code-header", {"font-weight": "600"}, ALL)
1717

18-
goto: "file://" + |DOC_PATH| + "/lib2/trait.Trait.html"
18+
go-to: "file://" + |DOC_PATH| + "/lib2/trait.Trait.html"
1919

2020
// This is a complex selector, so here's how it works:
2121
//

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

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
// This test ensures that when clicking on a link which leads to an item inside a collapsed element,
22
// the collapsed element will be expanded.
3-
goto: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html"
3+
go-to: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html"
44
// We check that the implementors block is expanded.
55
assert-property: ("#implementations-list .implementors-toggle", {"open": "true"})
66
// We now collapse the implementors block.
7-
property: ("#implementations-list .implementors-toggle", {"open": "false"})
7+
set-property: ("#implementations-list .implementors-toggle", {"open": "false"})
88
// And now we click on the link to the method to ensure it'll expand the implementors block.
99
click: "//*[@class='sidebar']//a[@href='#method.must_use']"
1010
assert-property: ("#implementations-list .implementors-toggle", {"open": "true"})
1111

1212
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.
15-
goto: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html"
15+
go-to: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html"
1616
// Then we collapse the section again...
17-
property: ("#implementations-list .implementors-toggle", {"open": "false"})
17+
set-property: ("#implementations-list .implementors-toggle", {"open": "false"})
1818
// Then we run the search.
1919
write: (".search-input", "foo::must_use")
2020
wait-for: "//*[@id='search']//a[@href='../test_docs/struct.Foo.html#method.must_use']"
@@ -25,12 +25,12 @@ define-function: ("collapsed-from-search", (), block {
2525
call-function: ("collapsed-from-search", {})
2626

2727
// Now running the same check but with mobile.
28-
size: (600, 600)
29-
goto: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html"
28+
set-window-size: (600, 600)
29+
go-to: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html"
3030
// We check that the implementors block is expanded.
3131
assert-property: ("#implementations-list .implementors-toggle", {"open": "true"})
3232
// We now collapse the implementors block.
33-
property: ("#implementations-list .implementors-toggle", {"open": "false"})
33+
set-property: ("#implementations-list .implementors-toggle", {"open": "false"})
3434
// First we expand the mobile menu.
3535
click: ".sidebar-menu-toggle"
3636
// Then we click on the link to the method to ensure it'll expand the implementors block.

tests/rustdoc-gui/hash-item-expansion.goml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This test ensures that the element corresponding to the hash is displayed.
2-
goto: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html#method.borrow"
2+
go-to: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html#method.borrow"
33
// In the blanket implementations list, "Borrow" is the second one, hence the ":nth(2)".
44
assert-attribute: ("#blanket-implementations-list > details:nth-child(2)", {"open": ""})
55
// We first check that the impl block is open by default.

tests/rustdoc-gui/headers-color.goml

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ define-function: (
44
"check-colors",
55
(theme, color, code_header_color, focus_background_color, headings_color),
66
block {
7-
goto: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html"
7+
go-to: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html"
88
// This is needed so that the text color is computed.
99
show-text: true
10-
local-storage: {"rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false"}
10+
set-local-storage: {"rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false"}
1111
reload:
1212
assert-css: (
1313
".impl",
@@ -19,20 +19,20 @@ define-function: (
1919
{"color": |code_header_color|, "background-color": "rgba(0, 0, 0, 0)"},
2020
ALL,
2121
)
22-
goto: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html#impl-Foo"
22+
go-to: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html#impl-Foo"
2323
assert-css: (
2424
"#impl-Foo",
2525
{"color": |color|, "background-color": |focus_background_color|},
2626
)
27-
goto: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html#method.must_use"
27+
go-to: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html#method.must_use"
2828
assert-css: (
2929
"#method\.must_use",
3030
{"color": |color|, "background-color": |focus_background_color|},
3131
ALL,
3232
)
33-
goto: "file://" + |DOC_PATH| + "/test_docs/index.html"
33+
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
3434
assert-css: (".small-section-header a", {"color": |color|}, ALL)
35-
goto: "file://" + |DOC_PATH| + "/test_docs/struct.HeavilyDocumentedStruct.html"
35+
go-to: "file://" + |DOC_PATH| + "/test_docs/struct.HeavilyDocumentedStruct.html"
3636
// We select headings (h2, h3, h...).
3737
assert-css: (".docblock > :not(p) > a", {"color": |headings_color|}, ALL)
3838
},

0 commit comments

Comments
 (0)