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 goto: file://|DOC_PATH|/test_docs/index.html
7 assert: (".stab.deprecated")
8 assert: (".stab.portability")
10 // make sure that deprecated and portability are different colours
12 ".item-table .item-left .stab.deprecated",
13 { "background-color": "rgb(255, 196, 196)" },
16 ".item-table .item-left .stab.portability",
17 { "background-color": "rgb(243, 223, 255)" },
21 assert-css: (".item-right.docblock-short", { "padding-left": "0px" })
22 compare-elements-position-near: (
23 "//*[@class='item-left module-item']//a[text()='replaced_function']",
24 ".item-left .stab.deprecated",
27 compare-elements-position: (
28 ".item-left .stab.deprecated",
29 ".item-left .stab.portability",
34 compare-elements-position-near: (
35 "//*[@class='item-left module-item']//a[text()='replaced_function']",
36 "//*[@class='item-right docblock-short']//p[text()='a thing with a label']",
39 // compare parent elements
40 compare-elements-position: (
41 "//*[@class='item-left module-item']//a[text()='replaced_function']/..",
42 "//*[@class='item-right docblock-short']//p[text()='a thing with a label']/..",
49 // staggered layout with 2em spacing
50 assert-css: (".item-right.docblock-short", { "padding-left": "32px" })
51 compare-elements-position-near: (
52 "//*[@class='item-left module-item']//a[text()='replaced_function']",
53 ".item-left .stab.deprecated",
56 compare-elements-position: (
57 ".item-left .stab.deprecated",
58 ".item-left .stab.portability",
63 compare-elements-position-near-false: (
64 "//*[@class='item-left module-item']//a[text()='replaced_function']",
65 "//*[@class='item-right docblock-short']//p[text()='a thing with a label']",
68 // compare parent elements
69 compare-elements-position-false: (
70 "//*[@class='item-left module-item']//a[text()='replaced_function']/..",
71 "//*[@class='item-right docblock-short']//p[text()='a thing with a label']/..",
74 compare-elements-position-false: (
75 ".item-left .stab.deprecated",
76 "//*[@class='item-right docblock-short']//p[text()='a thing with a label']",