Skip to content

Commit 9f0e376

Browse files
Update to new browser-ui-test version
1 parent 75b5a98 commit 9f0e376

File tree

5 files changed

+25
-0
lines changed

5 files changed

+25
-0
lines changed

src/test/rustdoc-gui/code-tags.goml

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
// This test ensures that items and documentation code blocks are wrapped in <pre><code>
2+
3+
// We need to disable this check because `implementors/test_docs/trait.AnotherOne.js`
4+
// doesn't exist.
5+
fail-on-request-error: false
26
goto: "file://" + |DOC_PATH| + "/test_docs/fn.foo.html"
37
size: (1080, 600)
48
// There should be four doc codeblocks.

src/test/rustdoc-gui/item-decl-colors.goml

+5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
// This test ensures that the color of the items in the type decl are working as expected.
2+
3+
// We need to disable this check because `implementors/test_docs/trait.TraitWithoutGenerics.js`
4+
// doesn't exist.
5+
fail-on-request-error: false
6+
27
define-function: (
38
"check-colors",
49
(

src/test/rustdoc-gui/no-docblock.goml

+5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
// This test checks that there are margins applied to methods with no docblocks.
2+
3+
// We need to disable this check because `implementors/test_docs/trait.TraitWithNoDocblock.js`
4+
// doesn't exist.
5+
fail-on-request-error: false
6+
27
goto: "file://" + |DOC_PATH| + "/test_docs/trait.TraitWithNoDocblocks.html"
38
// Check that the two methods are more than 24px apart.
49
compare-elements-position-near-false: ("//*[@id='tymethod.first_fn']", "//*[@id='tymethod.second_fn']", {"y": 24})

src/test/rustdoc-gui/trait-sidebar-item-order.goml

+5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
// Checks that the elements in the sidebar are alphabetically sorted.
2+
3+
// We need to disable this check because `implementors/test_docs/trait.AnotherOne.js`
4+
// doesn't exist.
5+
fail-on-request-error: false
6+
27
goto: "file://" + |DOC_PATH| + "/test_docs/trait.AnotherOne.html"
38
assert-text: (".sidebar-elems section .block li:nth-of-type(1) > a", "another")
49
assert-text: (".sidebar-elems section .block li:nth-of-type(2) > a", "func1")

src/test/rustdoc-gui/type-declation-overflow.goml

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
// This test ensures that the items declaration content overflow is handled inside the <pre> directly.
2+
3+
// We need to disable this check because
4+
// `implementors/test_docs/trait.ALongNameBecauseItHelpsTestingTheCurrentProblem.js`
5+
// doesn't exist.
6+
fail-on-request-error: false
7+
28
goto: "file://" + |DOC_PATH| + "/lib2/long_trait/trait.ALongNameBecauseItHelpsTestingTheCurrentProblem.html"
39
// We set a fixed size so there is no chance of "random" resize.
410
size: (1100, 800)

0 commit comments

Comments
 (0)