2017-06-08 16:59:51 +02:00
|
|
|
---------------------------------------------------------------------------
|
|
|
|
-- @author Uli Schlachter
|
|
|
|
-- @copyright 2017 Uli Schlachter
|
|
|
|
---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
local place = require("wibox.container.place")
|
|
|
|
local utils = require("wibox.test_utils")
|
2021-03-08 20:06:53 +01:00
|
|
|
local base = require("wibox.widget.base")
|
2017-06-08 16:59:51 +02:00
|
|
|
|
|
|
|
describe("wibox.container.place", function()
|
|
|
|
it("common interfaces", function()
|
|
|
|
utils.test_container(place())
|
|
|
|
end)
|
2021-03-08 20:06:53 +01:00
|
|
|
|
|
|
|
describe("constructor", function()
|
|
|
|
it("applies arguments", function()
|
|
|
|
local inner = base.empty_widget()
|
|
|
|
local widget = place(inner)
|
|
|
|
|
|
|
|
assert.is.equal(widget.widget, inner)
|
|
|
|
end)
|
|
|
|
end)
|
2017-06-08 16:59:51 +02:00
|
|
|
end)
|
|
|
|
|
|
|
|
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|