tests: Trigger the widget "update content" code path.

This commit is contained in:
Emmanuel Lepage Vallee 2020-03-08 19:48:03 -04:00
parent 21cb4037bc
commit b8e00b245f
1 changed files with 11 additions and 0 deletions

View File

@ -1095,6 +1095,11 @@ table.insert(steps, function()
assert(not n._private.widget_template_failed) assert(not n._private.widget_template_failed)
assert(not n.box) assert(not n.box)
-- Check adding messages later
n.title = "foo"
n.message = "bar"
n.icon = big_icon
n:destroy() n:destroy()
handler_called = false handler_called = false
@ -1111,6 +1116,12 @@ table.insert(steps, function()
assert(had_error) assert(had_error)
assert(not n.box) assert(not n.box)
-- Check changing existing content.
n.title = "bar"
n.message = "foo"
n.icon = big_icon
n.image = small_icon
handler_called = false handler_called = false
had_error = false had_error = false