From 0419de2a6036e45ef2af5a81431c719cd9069ff7 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Thu, 25 Jul 2019 22:14:15 -0400 Subject: [PATCH] tests: Test the screen name. --- tests/test-awful-screen.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test-awful-screen.lua b/tests/test-awful-screen.lua index 8544572b3..45e19fd9b 100644 --- a/tests/test-awful-screen.lua +++ b/tests/test-awful-screen.lua @@ -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