Skip to content

Commit 6c7b4bf

Browse files
committed
test: add taglist
1 parent f1388f9 commit 6c7b4bf

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

tests/test-taglist.lua

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
-- Test the taglist
2+
3+
local awful = require "awful"
4+
local runner = require "_runner"
5+
6+
local taglist = awful.widget.taglist {
7+
screen = screen[1],
8+
filter = awful.widget.taglist.filter.all
9+
}
10+
11+
12+
runner.run_steps{
13+
function (count)
14+
return type(taglist.filter) == "function"
15+
end,
16+
function (count)
17+
taglist.filter = awful.widget.taglist.filter.selected
18+
return taglist.filter == awful.widget.taglist.filter.selected
19+
end
20+
}

0 commit comments

Comments
 (0)