diff options
| author | Albert Larsan <74931857+albertlarsan68@users.noreply.github.com> | 2023-01-05 09:13:28 +0100 |
|---|---|---|
| committer | Albert Larsan <74931857+albertlarsan68@users.noreply.github.com> | 2023-01-11 09:32:08 +0000 |
| commit | cf2dff2b1e3fa55fa5415d524200070d0d7aacfe (patch) | |
| tree | 40a88d9a46aaf3e8870676eb2538378b75a263eb /src/test/rustdoc-gui/implementors.goml | |
| parent | ca855e6e42787ecd062d81d53336fe6788ef51a9 (diff) | |
| download | rust-cf2dff2b1e3fa55fa5415d524200070d0d7aacfe.tar.gz rust-cf2dff2b1e3fa55fa5415d524200070d0d7aacfe.zip | |
Move /src/test to /tests
Diffstat (limited to 'src/test/rustdoc-gui/implementors.goml')
| -rw-r--r-- | src/test/rustdoc-gui/implementors.goml | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src/test/rustdoc-gui/implementors.goml b/src/test/rustdoc-gui/implementors.goml deleted file mode 100644 index 997c0ed8f01..00000000000 --- a/src/test/rustdoc-gui/implementors.goml +++ /dev/null @@ -1,41 +0,0 @@ -// The goal of this test is to check that the external trait implementors, generated with JS, -// have the same display than the "local" ones. -goto: "file://" + |DOC_PATH| + "/implementors/trait.Whatever.html" -assert: "#implementors-list" -// There are supposed to be two implementors listed. -assert-count: ("#implementors-list .impl", 2) -// Now we check that both implementors have an anchor, an ID and a similar DOM. -assert: ("#implementors-list .impl:nth-child(1) > a.anchor") -assert-attribute: ("#implementors-list .impl:nth-child(1)", {"id": "impl-Whatever-for-Struct"}) -assert-attribute: ("#implementors-list .impl:nth-child(1) > a.anchor", {"href": "#impl-Whatever-for-Struct"}) -assert: "#implementors-list .impl:nth-child(1) > .code-header" - -assert: ("#implementors-list .impl:nth-child(2) > a.anchor") -assert-attribute: ("#implementors-list .impl:nth-child(2)", {"id": "impl-Whatever-1"}) -assert-attribute: ("#implementors-list .impl:nth-child(2) > a.anchor", {"href": "#impl-Whatever-1"}) -assert: "#implementors-list .impl:nth-child(2) > .code-header" - -goto: "file://" + |DOC_PATH| + "/test_docs/struct.HasEmptyTraits.html" -compare-elements-position-near-false: ( - "#impl-EmptyTrait1-for-HasEmptyTraits", - "#impl-EmptyTrait2-for-HasEmptyTraits", - {"y": 34}, -) -compare-elements-position-near: ( - "#impl-EmptyTrait3-for-HasEmptyTraits h3", - "#impl-EmptyTrait3-for-HasEmptyTraits .item-info", - {"y": 34}, -) - -// Now check that re-exports work correctly. -// There should be exactly one impl shown on both of these pages. -goto: "file://" + |DOC_PATH| + "/lib2/trait.TraitToReexport.html" -assert-count: ("#implementors-list .impl", 1) -goto: "file://" + |DOC_PATH| + "/implementors/trait.TraitToReexport.html" -assert-count: ("#implementors-list .impl", 1) - -// Now check that the link is properly rewritten for a crate called `http`. -// An older version of rustdoc had a buggy check for absolute links. -goto: "file://" + |DOC_PATH| + "/http/trait.HttpTrait.html" -assert-count: ("#implementors-list .impl", 1) -assert-attribute: ("#implementors-list .impl a.trait", {"href": "../http/trait.HttpTrait.html"}) |
