From 68488f6218582f2775c0355f2eadc1e91cac6aab Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Sat, 15 Jun 2019 02:22:03 -0400 Subject: [PATCH] tests: Test screen.automatic_factory --- tests/test-awful-screen.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/test-awful-screen.lua b/tests/test-awful-screen.lua index 692c5f97e..8544572b3 100644 --- a/tests/test-awful-screen.lua +++ b/tests/test-awful-screen.lua @@ -80,6 +80,17 @@ local steps = { assert(called) + return true + end, + -- Test the `automatic_factory` getter and setter. + function() + assert(type(screen.automatic_factory) == "boolean") + local orig = screen.automatic_factory + screen.automatic_factory = not orig + assert(screen.automatic_factory ~= orig) + assert(type(screen.automatic_factory) == "boolean") + screen.automatic_factory = not screen.automatic_factory + assert(screen.automatic_factory == orig) return true end }