about summary refs log tree commit diff
path: root/src/test/rustdoc-gui/scrape-examples-layout.goml
diff options
context:
space:
mode:
authorAlbert Larsan <74931857+albertlarsan68@users.noreply.github.com>2023-01-05 09:13:28 +0100
committerAlbert Larsan <74931857+albertlarsan68@users.noreply.github.com>2023-01-11 09:32:08 +0000
commitcf2dff2b1e3fa55fa5415d524200070d0d7aacfe (patch)
tree40a88d9a46aaf3e8870676eb2538378b75a263eb /src/test/rustdoc-gui/scrape-examples-layout.goml
parentca855e6e42787ecd062d81d53336fe6788ef51a9 (diff)
downloadrust-cf2dff2b1e3fa55fa5415d524200070d0d7aacfe.tar.gz
rust-cf2dff2b1e3fa55fa5415d524200070d0d7aacfe.zip
Move /src/test to /tests
Diffstat (limited to 'src/test/rustdoc-gui/scrape-examples-layout.goml')
-rw-r--r--src/test/rustdoc-gui/scrape-examples-layout.goml49
1 files changed, 0 insertions, 49 deletions
diff --git a/src/test/rustdoc-gui/scrape-examples-layout.goml b/src/test/rustdoc-gui/scrape-examples-layout.goml
deleted file mode 100644
index 95102528ec1..00000000000
--- a/src/test/rustdoc-gui/scrape-examples-layout.goml
+++ /dev/null
@@ -1,49 +0,0 @@
-// Check that the line number column has the correct layout.
-goto: "file://" + |DOC_PATH| + "/scrape_examples/fn.test_many.html"
-
-// Check that it's not zero.
-assert-property-false: (
-    ".more-scraped-examples .scraped-example .code-wrapper .src-line-numbers",
-    {"clientWidth": "0"}
-)
-
-// Check that examples with very long lines have the same width as ones that don't.
-store-property: (
-    clientWidth,
-    ".more-scraped-examples .scraped-example:nth-child(2) .code-wrapper .src-line-numbers",
-    "clientWidth"
-)
-
-assert-property: (
-    ".more-scraped-examples .scraped-example:nth-child(3) .code-wrapper .src-line-numbers",
-    {"clientWidth": |clientWidth|}
-)
-
-assert-property: (
-    ".more-scraped-examples .scraped-example:nth-child(4) .code-wrapper .src-line-numbers",
-    {"clientWidth": |clientWidth|}
-)
-
-assert-property: (
-    ".more-scraped-examples .scraped-example:nth-child(5) .code-wrapper .src-line-numbers",
-    {"clientWidth": |clientWidth|}
-)
-
-assert-property: (
-    ".more-scraped-examples .scraped-example:nth-child(6) .code-wrapper .src-line-numbers",
-    {"clientWidth": |clientWidth|}
-)
-
-// Check that for both mobile and desktop sizes, the buttons in scraped examples are displayed
-// correctly.
-
-store-value: (offset_y, 4)
-
-// First with desktop
-assert-position: (".scraped-example .code-wrapper", {"y": 255})
-assert-position: (".scraped-example .code-wrapper .prev", {"y": 255 + |offset_y|})
-
-// Then with mobile
-size: (600, 600)
-assert-position: (".scraped-example .code-wrapper", {"y": 314})
-assert-position: (".scraped-example .code-wrapper .prev", {"y": 314 + |offset_y|})