diff --git a/CMakeLists.txt b/CMakeLists.txt index 0e925bc5..f5090f61 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -356,6 +356,8 @@ if(${PROJECT_NAME}_TESTS) add_test(NAME tst_view COMMAND tst_view) add_test(NAME tst_viewwrapper COMMAND tst_viewwrapper) add_test(NAME tst_viewguard COMMAND tst_viewguard) + add_test(NAME tst_frame COMMAND tst_frame) + if(NOT ${PROJECT_NAME}_QTQUICK) # tst_multisplitter depends on QWidget add_test(NAME tst_multisplitter COMMAND tst_multisplitter) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 4bad5757..40356706 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -61,3 +61,6 @@ target_link_libraries(tst_view kddockwidgets) add_executable(tst_viewwrapper tst_viewwrapper.cpp ${TESTING_RESOURCES}) target_link_libraries(tst_viewwrapper kddockwidgets) + +add_executable(tst_frame controllers/tst_frame.cpp ${TESTING_RESOURCES}) +target_link_libraries(tst_frame kddockwidgets) \ No newline at end of file diff --git a/tests/controllers/tst_frame.cpp b/tests/controllers/tst_frame.cpp new file mode 100644 index 00000000..14a63fcf --- /dev/null +++ b/tests/controllers/tst_frame.cpp @@ -0,0 +1,24 @@ +/* + This file is part of KDDockWidgets. + + SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company + Author: Sérgio Martins + + SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only + + Contact KDAB at for commercial licensing options. +*/ + +#include "../main.h" +#include "controllers/Frame.h" + +#include "qtquick/Platform_qtquick.h" + +#include +#include + +TEST_CASE("Frame ctor") +{ + auto frame = new Controllers::Frame(nullptr, {}); + delete frame; +}