test-naughty-legacy.lua: harden/cleanup (#2873)

This commit is contained in:
Daniel Hahler 2019-09-13 16:00:51 +02:00 committed by GitHub
parent 754461b8f1
commit 0cbf536269
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 5 deletions

View File

@ -657,9 +657,9 @@ table.insert(steps, function()
local n = active[1]
n:connect_signal("property::title" , function() name_u = true end)
n:connect_signal("property::message", function() message_u = true end)
n:connect_signal("property::actions", function() actions_u = true end)
n:connect_signal("property::title" , function(_, val) name_u = val end)
n:connect_signal("property::message", function(_, val) message_u = val end)
n:connect_signal("property::actions", function(_, val) actions_u = val end)
send_notify("Awesome test", nid, "", "updated title", "updated message body",
{ "1", "four", "2", "five", "3", "six" }, {}, 25000)
@ -689,6 +689,10 @@ table.insert(steps, function()
n:destroy()
assert(#active == 0)
assert(name_u == "updated title", name_u)
assert(message_u == "updated message body", name_u)
assert(#actions_u == 3)
return true
end)
@ -1078,6 +1082,4 @@ table.insert(steps, function()
return true
end)
-- Test many screens.
require("_runner").run_steps(steps)