1 // These tests verify that labels like "UNIX" and "Deprecated" stay on the same line as their symbol.
2 // It also verifies the staggered layout on mobile.
3 go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
6 set-window-size: (1080, 600)
7 assert: (".stab.deprecated")
8 assert: (".stab.portability")
10 // make sure that deprecated and portability have the right colors
12 ".item-table .item-name .stab.deprecated",
13 { "background-color": "rgb(255, 245, 214)" },
16 ".item-table .item-name .stab.portability",
17 { "background-color": "rgb(255, 245, 214)" },
21 assert-css: (".desc.docblock-short", { "padding-left": "0px" })
22 compare-elements-position-near: (
23 "//*[@class='item-name']//a[text()='replaced_function']",
24 ".item-name .stab.deprecated",
27 compare-elements-position: (
28 ".item-name .stab.deprecated",
29 ".item-name .stab.portability",
34 compare-elements-position: (
35 "//*[@class='item-name']//a[text()='replaced_function']/..",
36 "//*[@class='desc docblock-short'][text()='a thing with a label']",
42 set-window-size: (600, 600)
43 // staggered layout with 2em spacing
44 assert-css: (".desc.docblock-short", { "padding-left": "32px" })
45 compare-elements-position-near: (
46 "//*[@class='item-name']//a[text()='replaced_function']",
47 ".item-name .stab.deprecated",
50 compare-elements-position: (
51 ".item-name .stab.deprecated",
52 ".item-name .stab.portability",
57 compare-elements-position-false: (
58 "//*[@class='item-name']//a[text()='replaced_function']/..",
59 "//*[@class='desc docblock-short'][text()='a thing with a label']",
62 compare-elements-position-false: (
63 ".item-name .stab.deprecated",
64 "//*[@class='desc docblock-short'][text()='a thing with a label']",