summaryrefslogtreecommitdiff
path: root/src/unittests/gui/windowmanager.cc
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-28 02:36:11 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-28 02:36:11 +0300
commit28e53f73dff6f889a9eaeb69d19767dfc71afddd (patch)
treed3d638be1ddeb179937aca805c2be95a30ebe445 /src/unittests/gui/windowmanager.cc
parent2134c91e8f9793d07206febf22d5310132f3bc7e (diff)
downloadmv-28e53f73dff6f889a9eaeb69d19767dfc71afddd.tar.gz
mv-28e53f73dff6f889a9eaeb69d19767dfc71afddd.tar.bz2
mv-28e53f73dff6f889a9eaeb69d19767dfc71afddd.tar.xz
mv-28e53f73dff6f889a9eaeb69d19767dfc71afddd.zip
Fix unit tests compilation.
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);