diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-12-28 02:36:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-12-28 02:36:11 +0300 |
commit | 28e53f73dff6f889a9eaeb69d19767dfc71afddd (patch) | |
tree | d3d638be1ddeb179937aca805c2be95a30ebe445 /src/unittests/gui/windowmanager.cc | |
parent | 2134c91e8f9793d07206febf22d5310132f3bc7e (diff) | |
download | manaverse-28e53f73dff6f889a9eaeb69d19767dfc71afddd.tar.gz manaverse-28e53f73dff6f889a9eaeb69d19767dfc71afddd.tar.bz2 manaverse-28e53f73dff6f889a9eaeb69d19767dfc71afddd.tar.xz manaverse-28e53f73dff6f889a9eaeb69d19767dfc71afddd.zip |
Fix unit tests compilation.
Diffstat (limited to 'src/unittests/gui/windowmanager.cc')
-rw-r--r-- | src/unittests/gui/windowmanager.cc | 16 |
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); |