Files
KDDockWidgets/tests/controllers/tst_titlebar.cpp
Sergio Martins 0f55a2f87a tests: Add tst_titlebar
At least for the ctor, which already helps to find bugs in
the .qml file
2022-05-23 18:07:56 +01:00

28 lines
666 B
C++

/*
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/TitleBar.h"
#include "controllers/Frame.h"
#include "qtquick/Platform_qtquick.h"
#include <QQmlContext>
#include <QQmlEngine>
TEST_CASE("TitleBar Ctor")
{
auto frame = new Controllers::Frame(nullptr, {});
auto tb = new Controllers::TitleBar(frame);
delete tb;
delete frame;
}