tests: Add another test to tst_dropArea

This commit is contained in:
Sergio Martins
2022-08-03 09:48:30 +01:00
parent 3f32bc3dce
commit 69c2c0770f

View File

@@ -11,6 +11,7 @@
#include "../main.h"
#include "controllers/DropArea.h"
#include "controllers/Group.h"
#include "Platform.h"
TEST_CASE("DropArea CTOR")
@@ -18,3 +19,10 @@ TEST_CASE("DropArea CTOR")
// Tests that ctor runs and doesn't leak
Controllers::DropArea da(nullptr, {});
}
TEST_CASE("DropArea::addWidget")
{
auto group = new Controllers::Group();
Controllers::DropArea da(nullptr, {});
da.addWidget(group->view(), KDDockWidgets::Location_OnLeft);
}