From 7753d830c14e7c08f02326e43e854ad012f879a6 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Tue, 16 Aug 2016 00:00:39 -0400 Subject: [PATCH] tests: Test the place container. --- .../wibox/container/defaults/place.lua | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tests/examples/wibox/container/defaults/place.lua diff --git a/tests/examples/wibox/container/defaults/place.lua b/tests/examples/wibox/container/defaults/place.lua new file mode 100644 index 000000000..aa5269a7e --- /dev/null +++ b/tests/examples/wibox/container/defaults/place.lua @@ -0,0 +1,24 @@ +--DOC_HIDE_ALL +local wibox = require("wibox") + +return { + text = "Before", + align = "center", + valign = "center", + widget = wibox.widget.textbox, +}, +{ + { + { + text = "After", + align = "center", + valign = "center", + widget = wibox.widget.textbox, + }, + valign = "bottom", + halign = "right", + widget = wibox.container.place + }, + margins = 5, + layout = wibox.container.margin +}