@@ -23,7 +23,7 @@ assert-css: (
2323// table like view
2424assert-css: (".desc.docblock-short", { "padding-left": "0px" })
2525compare-elements-position-near: (
26- "//*[@class='item-name']//a[text ()='replaced_function']",
26+ "//*[@class='item-name']//a[normalize-space ()='replaced_function']",
2727 ".item-name .stab.deprecated",
2828 {"y": 2},
2929)
@@ -35,8 +35,8 @@ compare-elements-position: (
3535
3636// Ensure no wrap
3737compare-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']",
4040 ["y"],
4141)
4242
@@ -45,7 +45,7 @@ set-window-size: (600, 600)
4545// staggered layout with 2em spacing
4646assert-css: (".desc.docblock-short", { "padding-left": "32px" })
4747compare-elements-position-near: (
48- "//*[@class='item-name']//a[text ()='replaced_function']",
48+ "//*[@class='item-name']//a[normalize-space ()='replaced_function']",
4949 ".item-name .stab.deprecated",
5050 {"y": 2},
5151)
@@ -57,13 +57,13 @@ compare-elements-position: (
5757
5858// Ensure wrap
5959compare-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']",
6262 ["y"],
6363)
6464compare-elements-position-false: (
6565 ".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']",
6767 ["y"],
6868)
6969
@@ -73,7 +73,7 @@ go-to: "file://" + |DOC_PATH| + "/test_docs/cfgs/index.html"
7373// This part of the tags should not be on the same line as the beginning since the width
7474// is too small for that.
7575compare-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']",
7878 ["y"],
7979)
0 commit comments