tests: Update the miss handler test

This commit is contained in:
Emmanuel Lepage Vallee 2016-05-12 01:18:12 -04:00
parent 129b3b1d50
commit 0dcc545f35
1 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,7 @@ local mouse = mouse
local class = tag local class = tag
local obj = class({}) local obj = class({})
local handler = require("gears.object.properties") local handler = require("gears.object.properties")
local wibox = require("wibox")
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)
@ -35,4 +36,8 @@ assert(obj.key == 1337)
mouse.foo = "bar" mouse.foo = "bar"
assert(mouse.foo == "bar") assert(mouse.foo == "bar")
local w = wibox()
w.foo = "bar"
assert(w.foo == "bar")
require("_runner").run_steps({ function() return true end }) require("_runner").run_steps({ function() return true end })