From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- .../docblock-code-block-line-number.goml | 39 ---------------------- 1 file changed, 39 deletions(-) delete mode 100644 src/test/rustdoc-gui/docblock-code-block-line-number.goml (limited to 'src/test/rustdoc-gui/docblock-code-block-line-number.goml') diff --git a/src/test/rustdoc-gui/docblock-code-block-line-number.goml b/src/test/rustdoc-gui/docblock-code-block-line-number.goml deleted file mode 100644 index fec21ad35..000000000 --- a/src/test/rustdoc-gui/docblock-code-block-line-number.goml +++ /dev/null @@ -1,39 +0,0 @@ -// Checks that the setting "line numbers" is working as expected. -goto: "file://" + |DOC_PATH| + "/test_docs/fn.foo.html" - -// We check that without this setting, there is no line number displayed. -assert-false: "pre.example-line-numbers" - -// We now set the setting to show the line numbers on code examples. -local-storage: {"rustdoc-line-numbers": "true" } -// We reload to make the line numbers appear. -reload: - -// We wait for them to be added into the DOM by the JS... -wait-for: "pre.example-line-numbers" -// If the test didn't fail, it means that it was found! -// Let's now check some CSS properties... -assert-css: ("pre.example-line-numbers", { - "margin": "0px", - "padding": "13px 8px", - "text-align": "right", -}) -// The first code block has two lines so let's check its `
` elements lists both of them.
-assert-text: ("pre.example-line-numbers", "1\n2")
-
-// Now, try changing the setting dynamically. We'll turn it off, using the settings menu,
-// and make sure it goes away.
-
-// First, open the settings menu.
-click: "#settings-menu"
-wait-for: "#settings"
-assert-css: ("#settings", {"display": "block"})
-
-// Then, click the toggle button.
-click: "input#line-numbers"
-wait-for: 100 // wait-for-false does not exist
-assert-false: "pre.example-line-numbers"
-
-// Finally, turn it on again.
-click: "input#line-numbers"
-wait-for: "pre.example-line-numbers"
-- 
cgit v1.2.3