forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#86594 - dns2utf8:move_label_to_symbol, r=Guil…
…laumeGomez rustdoc: Move label to symbol Implements rust-lang#86578 depends on rust-lang#85651 r? `@GuillaumeGomez` # Screenshot of mobile  # Screenshot on desktop 
- Loading branch information
Showing
9 changed files
with
60 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// These tests verify that labels like "UNIX" and "Deprecated" stay on the same line as their symbol. | ||
// It also verifies the staggered layout on mobile. | ||
goto: file://|DOC_PATH|/test_docs/index.html | ||
|
||
// Desktop view | ||
size: (1080, 600) | ||
assert: (".stab.deprecated") | ||
assert: (".stab.portability") | ||
|
||
// make sure that deprecated and portability are different colours | ||
assert-css: (".item-table .item-left .stab.deprecated", { "background-color": "rgb(255, 196, 196)" }) | ||
assert-css: (".item-table .item-left .stab.portability", { "background-color": "rgb(243, 223, 255)" }) | ||
|
||
// table like view | ||
assert-css: (".item-right.docblock-short", { "padding-left": "0px" }) | ||
// Requires new function: https://github.com/GuillaumeGomez/browser-UI-test/pull/202 | ||
//compare-elements-position-near: ("//*[@class='item-left module-item']//a[text()='replaced_function']", ".item-left .stab.deprecated", ("y")) | ||
compare-elements-position: (".item-left .stab.deprecated", ".item-left .stab.portability", ("y")) | ||
|
||
// Ensure no wrap | ||
//compare-elements-position: ("//*[@class='item-left module-item']//a[text()='replaced_function']", "//*[@class='item-right docblock-short']//p[text()='a thing with a label']", ("y")) | ||
compare-elements-position: ("//*[@class='item-left module-item']//a[text()='replaced_function']/..", "//*[@class='item-right docblock-short']//p[text()='a thing with a label']/..", ("y")) | ||
|
||
|
||
// Mobile view | ||
size: (600, 600) | ||
// staggered layout with 2em spacing | ||
assert-css: (".item-right.docblock-short", { "padding-left": "32px" }) | ||
// Requires new function: https://github.com/GuillaumeGomez/browser-UI-test/pull/202 | ||
//compare-elements-position-near: ("//*[@class='item-left module-item']//a[text()='replaced_function']", ".item-left .stab.deprecated", ("y")) | ||
compare-elements-position: (".item-left .stab.deprecated", ".item-left .stab.portability", ("y")) | ||
|
||
// Ensure wrap | ||
compare-elements-position-false: ("//*[@class='item-left module-item']//a[text()='replaced_function']", "//*[@class='item-right docblock-short']//p[text()='a thing with a label']", ("y")) | ||
compare-elements-position-false: ("//*[@class='item-left module-item']//a[text()='replaced_function']/..", "//*[@class='item-right docblock-short']//p[text()='a thing with a label']/..", ("y")) | ||
compare-elements-position-false: (".item-left .stab.deprecated", "//*[@class='item-right docblock-short']//p[text()='a thing with a label']", ("y")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters