@@ -23,7 +23,7 @@ assert-css: (
23
23
// table like view
24
24
assert-css: (".desc.docblock-short", { "padding-left": "0px" })
25
25
compare-elements-position-near: (
26
- "//*[@class='item-name']//a[text ()='replaced_function']",
26
+ "//*[@class='item-name']//a[normalize-space ()='replaced_function']",
27
27
".item-name .stab.deprecated",
28
28
{"y": 2},
29
29
)
@@ -35,8 +35,8 @@ compare-elements-position: (
35
35
36
36
// Ensure no wrap
37
37
compare-elements-position: (
38
- "//*[@class='item-name']//a[text ()='replaced_function']/..",
39
- "//*[@class='desc docblock-short'][text ()='a thing with a label']",
38
+ "//*[@class='item-name']//a[normalize-space ()='replaced_function']/..",
39
+ "//*[@class='desc docblock-short'][normalize-space ()='a thing with a label']",
40
40
["y"],
41
41
)
42
42
@@ -45,7 +45,7 @@ set-window-size: (600, 600)
45
45
// staggered layout with 2em spacing
46
46
assert-css: (".desc.docblock-short", { "padding-left": "32px" })
47
47
compare-elements-position-near: (
48
- "//*[@class='item-name']//a[text ()='replaced_function']",
48
+ "//*[@class='item-name']//a[normalize-space ()='replaced_function']",
49
49
".item-name .stab.deprecated",
50
50
{"y": 2},
51
51
)
@@ -57,13 +57,13 @@ compare-elements-position: (
57
57
58
58
// Ensure wrap
59
59
compare-elements-position-false: (
60
- "//*[@class='item-name']//a[text ()='replaced_function']/..",
61
- "//*[@class='desc docblock-short'][text ()='a thing with a label']",
60
+ "//*[@class='item-name']//a[normalize-space ()='replaced_function']/..",
61
+ "//*[@class='desc docblock-short'][normalize-space ()='a thing with a label']",
62
62
["y"],
63
63
)
64
64
compare-elements-position-false: (
65
65
".item-name .stab.deprecated",
66
- "//*[@class='desc docblock-short'][text ()='a thing with a label']",
66
+ "//*[@class='desc docblock-short'][normalize-space ()='a thing with a label']",
67
67
["y"],
68
68
)
69
69
@@ -73,7 +73,7 @@ go-to: "file://" + |DOC_PATH| + "/test_docs/cfgs/index.html"
73
73
// This part of the tags should not be on the same line as the beginning since the width
74
74
// is too small for that.
75
75
compare-elements-position-false: (
76
- "//*[@class='stab portability']/code[text ()='appservice-api-c']",
77
- "//*[@class='stab portability']/code[text ()='server']",
76
+ "//*[@class='stab portability']/code[normalize-space ()='appservice-api-c']",
77
+ "//*[@class='stab portability']/code[normalize-space ()='server']",
78
78
["y"],
79
79
)
0 commit comments