tests: Test the screen name.

This commit is contained in:
Emmanuel Lepage Vallee 2019-07-25 22:14:15 -04:00
parent 464e103a4e
commit 0419de2a60
1 changed files with 6 additions and 0 deletions

View File

@ -68,6 +68,12 @@ local steps = {
-- Make sure the error code still works when all screens are gone.
function()
while screen.count() > 0 do
-- Before removing them, check if `name` works.
assert(screen[1].name == "screen1")
screen[1].name = "foo"
assert(screen[1].name == "foo")
assert(screen.foo == screen[1])
screen[1]:fake_remove()
end