From 0cbf536269e06a8f5703ec987e2e1df13b12e380 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Fri, 13 Sep 2019 16:00:51 +0200 Subject: [PATCH] test-naughty-legacy.lua: harden/cleanup (#2873) --- tests/test-naughty-legacy.lua | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/test-naughty-legacy.lua b/tests/test-naughty-legacy.lua index 67fd80af..2a1866a6 100644 --- a/tests/test-naughty-legacy.lua +++ b/tests/test-naughty-legacy.lua @@ -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)