From 50b6c82091a2877e8232a7381a8dafce873e4b31 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Thu, 11 Aug 2016 19:55:46 -0400 Subject: [PATCH] shim: Add basic button support --- tests/examples/shims/_common_template.lua | 3 ++- tests/examples/shims/button.lua | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 tests/examples/shims/button.lua diff --git a/tests/examples/shims/_common_template.lua b/tests/examples/shims/_common_template.lua index 021b09fc..cfbb25cc 100644 --- a/tests/examples/shims/_common_template.lua +++ b/tests/examples/shims/_common_template.lua @@ -1,7 +1,7 @@ return function(_, _, luacovpath) -- Set the global shims - -- luacheck: globals awesome root tag screen client mouse drawin + -- luacheck: globals awesome root tag screen client mouse drawin button awesome = require( "awesome" ) root = require( "root" ) tag = require( "tag" ) @@ -9,6 +9,7 @@ return function(_, _, luacovpath) client = require( "client" ) mouse = require( "mouse" ) drawin = require( "drawin" ) + button = require( "button" ) -- Force luacheck to be silent about setting those as unused globals assert(awesome and root and tag and screen and client and mouse) diff --git a/tests/examples/shims/button.lua b/tests/examples/shims/button.lua new file mode 100644 index 00000000..f3170d89 --- /dev/null +++ b/tests/examples/shims/button.lua @@ -0,0 +1,3 @@ +return function() return { + connect_signal = function() end +} end