tests/_client.lua: Allow class to be unspecified

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2016-05-01 19:24:38 +02:00
parent 2da6ec0912
commit bcc7c65f77
1 changed files with 2 additions and 2 deletions

View File

@ -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,",