tests: Update the miss handler test
This commit is contained in:
parent
3322a17182
commit
18ef42abfc
|
@ -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 })
|
||||||
|
|
Loading…
Reference in New Issue