tests: Use the same string for both notification lines.
Otherwise you cannot compare the width since `r` is thinner than `z` in some non-monospace fonts.
This commit is contained in:
parent
e4e7abda5f
commit
9954e43521
|
@ -748,10 +748,10 @@ table.insert(steps, function()
|
||||||
assert(n.width > width)
|
assert(n.width > width)
|
||||||
assert(n.height == height)
|
assert(n.height == height)
|
||||||
width, height = n.width, n.height
|
width, height = n.width, n.height
|
||||||
naughty.replace_text(n, "foo", "bar\nbaz")
|
naughty.replace_text(n, "foo", "bar\nbar")
|
||||||
assert(n.title == "foo")
|
assert(n.title == "foo")
|
||||||
assert(n.message == "bar\nbaz")
|
assert(n.message == "bar\nbar")
|
||||||
assert(n.text == "bar\nbaz")
|
assert(n.text == "bar\nbar")
|
||||||
assert(n.width < width)
|
assert(n.width < width)
|
||||||
assert(n.height > height)
|
assert(n.height > height)
|
||||||
width, height = n.width, n.height
|
width, height = n.width, n.height
|
||||||
|
|
Loading…
Reference in New Issue