summaryrefslogtreecommitdiff
path: root/src/unittests/gui/windowmanager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/unittests/gui/windowmanager.cc')
-rw-r--r--src/unittests/gui/windowmanager.cc16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/unittests/gui/windowmanager.cc b/src/unittests/gui/windowmanager.cc
index 92ea50920..fac9bc212 100644
--- a/src/unittests/gui/windowmanager.cc
+++ b/src/unittests/gui/windowmanager.cc
@@ -473,7 +473,10 @@ TEST_CASE("Windows tests", "windowmanager")
Equipm_true,
Equipped_false);
ItemAmountWindow *dialog = CREATEWIDGETR(ItemAmountWindow,
- ItemAmountWindowUsage::ItemDrop, nullptr, item);
+ ItemAmountWindowUsage::ItemDrop,
+ nullptr,
+ item,
+ 0);
gui->draw();
mainGraphics->updateScreen();
delete2(dialog);
@@ -633,14 +636,21 @@ TEST_CASE("Windows tests", "windowmanager")
new EmoteShortcutContainer(nullptr);
CREATEWIDGETV(itemShortcutWindow, ShortcutWindow,
"name",
- container);
+ container,
+ std::string(),
+ 0,
+ 0);
gui->draw();
mainGraphics->updateScreen();
delete2(itemShortcutWindow);
}
SECTION("ShortcutWindow2")
{
- CREATEWIDGETV(itemShortcutWindow, ShortcutWindow, "");
+ CREATEWIDGETV(itemShortcutWindow, ShortcutWindow,
+ std::string(),
+ std::string(),
+ 0,
+ 0);
gui->draw();
mainGraphics->updateScreen();
delete2(itemShortcutWindow);