From e8dd707508afb0de9b4d2d2bef8e3787810076c7 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Sun, 24 Apr 2016 21:04:27 -0400 Subject: [PATCH] tests: The the mouse miss handler --- tests/test-miss-handlers.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test-miss-handlers.lua b/tests/test-miss-handlers.lua index f97d089b..fe61a860 100644 --- a/tests/test-miss-handlers.lua +++ b/tests/test-miss-handlers.lua @@ -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 })