tests/_client.lua: Allow class to be unspecified
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
2da6ec0912
commit
bcc7c65f77
|
@ -4,14 +4,14 @@ local spawn = require("awful.spawn")
|
|||
-- It is used to test the `awful.rules`
|
||||
|
||||
return function(class, title, use_sn)
|
||||
class = class or 'test_app'
|
||||
title = title or 'Awesome test client'
|
||||
|
||||
local cmd = {"lua" , "-e", table.concat {
|
||||
"local lgi = require 'lgi';",
|
||||
"local Gtk = lgi.require('Gtk');",
|
||||
"Gtk.init();",
|
||||
"local class = '",
|
||||
class or 'test_app',"';",
|
||||
"local class = '",class,"';",
|
||||
"local window = Gtk.Window {",
|
||||
" default_width = 100,",
|
||||
" default_height = 100,",
|
||||
|
|
Loading…
Reference in New Issue