tests: Check that naughty emits "request::display_error" when needed.
This commit is contained in:
parent
aed2af44b6
commit
529f4be53e
|
@ -874,6 +874,21 @@ table.insert(steps, function()
|
||||||
return true
|
return true
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
-- Test the error popup.
|
||||||
|
table.insert(steps, function()
|
||||||
|
local got = nil
|
||||||
|
|
||||||
|
naughty.connect_signal("request::display_error", function(err)
|
||||||
|
got = err
|
||||||
|
end)
|
||||||
|
|
||||||
|
awesome.emit_signal("debug::error", "foo")
|
||||||
|
|
||||||
|
assert(got == "foo")
|
||||||
|
|
||||||
|
return true
|
||||||
|
end)
|
||||||
|
|
||||||
-- Now check if the old deprecated (but still supported) APIs don't have errors.
|
-- Now check if the old deprecated (but still supported) APIs don't have errors.
|
||||||
table.insert(steps, function()
|
table.insert(steps, function()
|
||||||
-- Tests are (by default) not allowed to call deprecated APIs
|
-- Tests are (by default) not allowed to call deprecated APIs
|
||||||
|
|
Loading…
Reference in New Issue