tests: Add tests for the stack layout

This commit is contained in:
Emmanuel Lepage Vallee 2017-06-12 02:48:34 -04:00
parent fb367c3f9e
commit 82d1616773
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,15 @@
local generic_widget = ... --DOC_HIDE
local wibox = require("wibox") --DOC_HIDE
return --DOC_HIDE
wibox.widget {
generic_widget( "first" ),
generic_widget( "second" ),
generic_widget( "third" ),
horizontal_offset = 5,
vertical_offset = 5,
layout = wibox.layout.stack
}
, 200, 50 --DOC_HIDE
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80

View File

@ -0,0 +1,13 @@
local generic_widget = ... --DOC_HIDE
local wibox = require("wibox") --DOC_HIDE
return --DOC_HIDE
wibox.widget {
generic_widget( "first" ),
generic_widget( "second" ),
generic_widget( "third" ),
spacing = 6,
layout = wibox.layout.stack
}
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80