@@ -31,46 +31,4 @@ assert-css: ("h2#implementations a.anchor", {"color": "rgb(0, 0, 0)"})
31
31
move-cursor-to: "#impl"
32
32
assert-css: ("#impl a.anchor", {"color": "rgb(0, 0, 0)"})
33
33
34
- // Now we check the positions: only the first heading of the top doc comment should
35
- // have a different position.
36
- move-cursor-to: ".top-doc .docblock .section-header:first-child"
37
- assert-css: (
38
- ".top-doc .docblock .section-header:first-child > a::before",
39
- {"left": "-10px", "padding-right": "10px"},
40
- )
41
- // We also check that the heading itself has a different indent.
42
- assert-css: (".top-doc .docblock .section-header:first-child", {"margin-left": "15px"})
43
-
44
- move-cursor-to: ".top-doc .docblock .section-header:not(:first-child)"
45
- assert-css: (
46
- ".top-doc .docblock .section-header:not(:first-child) > a::before",
47
- {"left": "-25px", "padding-right": "10px"},
48
- )
49
- assert-css: (".top-doc .docblock .section-header:not(:first-child)", {"margin-left": "0px"})
50
-
51
- // Now let's check some other docblock headings...
52
- // First the impl block docs.
53
- move-cursor-to: "#title-for-struct-impl-doc"
54
- assert-css: (
55
- "#title-for-struct-impl-doc > a::before",
56
- {"left": "-25px", "padding-right": "10px"},
57
- )
58
- assert-css: ("#title-for-struct-impl-doc", {"margin-left": "0px"})
59
- // Now a method docs.
60
- move-cursor-to: "#title-for-struct-impl-item-doc"
61
- assert-css: (
62
- "#title-for-struct-impl-item-doc > a::before",
63
- {"left": "-25px", "padding-right": "10px"},
64
- )
65
34
assert-css: ("#title-for-struct-impl-item-doc", {"margin-left": "0px"})
66
-
67
- // Finally, we want to ensure that if the first element of the doc block isn't a heading,
68
- // if there is a heading afterwards, it won't have the indent.
69
- goto: file://|DOC_PATH|/test_docs/enum.WhoLetTheDogOut.html
70
-
71
- move-cursor-to: ".top-doc .docblock .section-header"
72
- assert-css: (
73
- ".top-doc .docblock .section-header > a::before",
74
- {"left": "-25px", "padding-right": "10px"},
75
- )
76
- assert-css: (".top-doc .docblock .section-header", {"margin-left": "0px"})
0 commit comments