tests: Add another test to tst_dropArea
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user