diff --git a/tests/test-miss-handlers.lua b/tests/test-miss-handlers.lua index 0d9e3a0e..f97d089b 100644 --- a/tests/test-miss-handlers.lua +++ b/tests/test-miss-handlers.lua @@ -2,6 +2,7 @@ local class = tag local obj = class({}) +local handler = require("gears.object.properties") awesome.connect_signal("debug::index::miss", error) awesome.connect_signal("debug::newindex::miss", error) @@ -23,4 +24,10 @@ end) obj.key = 42 assert(called) +handler(class, {auto_emit=true}) + +assert(not obj.key) +obj.key = 1337 +assert(obj.key == 1337) + require("_runner").run_steps({ function() return true end })