tests: The the mouse miss handler

This commit is contained in:
Emmanuel Lepage Vallee 2016-04-24 21:04:27 -04:00
parent 0b6cd90dce
commit e8dd707508
1 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,6 @@
-- Test set_{,new}index_miss_handler
local mouse = mouse
local class = tag
local obj = class({})
local handler = require("gears.object.properties")
@ -30,4 +31,8 @@ assert(not obj.key)
obj.key = 1337
assert(obj.key == 1337)
-- The the custom mouse handler
mouse.foo = "bar"
assert(mouse.foo == "bar")
require("_runner").run_steps({ function() return true end })