tests: Add tst_frame
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
24
tests/controllers/tst_frame.cpp
Normal file
24
tests/controllers/tst_frame.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sérgio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
#include "../main.h"
|
||||
#include "controllers/Frame.h"
|
||||
|
||||
#include "qtquick/Platform_qtquick.h"
|
||||
|
||||
#include <QQmlContext>
|
||||
#include <QQmlEngine>
|
||||
|
||||
TEST_CASE("Frame ctor")
|
||||
{
|
||||
auto frame = new Controllers::Frame(nullptr, {});
|
||||
delete frame;
|
||||
}
|
||||
Reference in New Issue
Block a user