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:
Emmanuel Lepage Vallee 2019-03-02 12:51:03 -05:00
parent e4e7abda5f
commit 9954e43521
1 changed files with 3 additions and 3 deletions

View File

@ -748,10 +748,10 @@ table.insert(steps, function()
assert(n.width > width)
assert(n.height == 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.message == "bar\nbaz")
assert(n.text == "bar\nbaz")
assert(n.message == "bar\nbar")
assert(n.text == "bar\nbar")
assert(n.width < width)
assert(n.height > height)
width, height = n.width, n.height