test-urgent.lua: Test "tag by name" rules

With this commit, the code added previously to awful.rules is now also tested.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2016-04-10 11:32:16 +02:00 committed by Uli Schlachter
parent 3f0483003c
commit 9efc5ca409
1 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ local steps = {
tags[awful.screen.focused()][1]:view_only()
runner.add_to_default_rules({ rule = { class = "XTerm" },
properties = { tag = tags[awful.screen.focused()][2], focus = true } })
properties = { tag = "2", focus = true } })
awful.spawn("xterm")
end
@ -75,7 +75,7 @@ local steps = {
tags[awful.screen.focused()][1]:view_only()
runner.add_to_default_rules({ rule = { class = "XTerm" },
properties = { tag = tags[awful.screen.focused()][2], focus = true, switchtotag = true }})
properties = { tag = "2", focus = true, switchtotag = true }})
awful.spawn("xterm")
@ -97,7 +97,7 @@ local steps = {
manage_cb_done = false
runner.add_to_default_rules({rule = { class = "XTerm" },
properties = { tag = tags[awful.screen.focused()][2], focus = false }})
properties = { tag = "2", focus = false }})
awful.spawn("xterm")
end