summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc-gui/docblock-table-overflow.goml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
commit64d98f8ee037282c35007b64c2649055c56af1db (patch)
tree5492bcf97fce41ee1c0b1cc2add283f3e66cdab0 /src/test/rustdoc-gui/docblock-table-overflow.goml
parentAdding debian version 1.67.1+dfsg1-1. (diff)
downloadrustc-64d98f8ee037282c35007b64c2649055c56af1db.tar.xz
rustc-64d98f8ee037282c35007b64c2649055c56af1db.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/rustdoc-gui/docblock-table-overflow.goml')
-rw-r--r--src/test/rustdoc-gui/docblock-table-overflow.goml21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/test/rustdoc-gui/docblock-table-overflow.goml b/src/test/rustdoc-gui/docblock-table-overflow.goml
deleted file mode 100644
index d8670089a..000000000
--- a/src/test/rustdoc-gui/docblock-table-overflow.goml
+++ /dev/null
@@ -1,21 +0,0 @@
-// This test ensures that the type declaration content overflow is handled inside the <pre> directly.
-goto: "file://" + |DOC_PATH| + "/lib2/long_table/struct.Foo.html"
-// We set a fixed size so there is no chance of "random" resize.
-size: (1100, 800)
-// Logically, the ".docblock" and the "<p>" should have the same scroll width.
-compare-elements-property: (".top-doc .docblock", ".top-doc .docblock > p", ["scrollWidth"])
-assert-property: (".top-doc .docblock", {"scrollWidth": "816"})
-// However, since there is overflow in the <table>, its scroll width is bigger.
-assert-property: (".top-doc .docblock table", {"scrollWidth": "1572"})
-
-// Checking it works on other doc blocks as well...
-
-// Logically, the ".docblock" and the "<p>" should have the same scroll width.
-compare-elements-property: (
- "#implementations-list > details .docblock",
- "#implementations-list > details .docblock > p",
- ["scrollWidth"],
-)
-assert-property: ("#implementations-list > details .docblock", {"scrollWidth": "816"})
-// However, since there is overflow in the <table>, its scroll width is bigger.
-assert-property: ("#implementations-list > details .docblock table", {"scrollWidth": "1572"})