tests: Update the miss handler test

This commit is contained in:
Emmanuel Lepage Vallee 2016-03-30 03:20:56 -04:00
parent 3322a17182
commit 18ef42abfc
1 changed files with 7 additions and 0 deletions

View File

@ -2,6 +2,7 @@
local class = tag local class = tag
local obj = class({}) local obj = class({})
local handler = require("gears.object.properties")
awesome.connect_signal("debug::index::miss", error) awesome.connect_signal("debug::index::miss", error)
awesome.connect_signal("debug::newindex::miss", error) awesome.connect_signal("debug::newindex::miss", error)
@ -23,4 +24,10 @@ end)
obj.key = 42 obj.key = 42
assert(called) 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 }) require("_runner").run_steps({ function() return true end })