First Commit
This commit is contained in:
33
3rdparty/kddockwidgets/tests/core/tst_titlebar.cpp
vendored
Normal file
33
3rdparty/kddockwidgets/tests/core/tst_titlebar.cpp
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019 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 "../simple_test_framework.h"
|
||||
#include "core/Platform.h"
|
||||
#include "core/TitleBar.h"
|
||||
#include "core/Group.h"
|
||||
|
||||
using namespace KDDockWidgets;
|
||||
|
||||
KDDW_QCORO_TASK tst_titleBarCtor()
|
||||
{
|
||||
auto group = new Core::Group(nullptr, {});
|
||||
auto tb = new Core::TitleBar(group);
|
||||
CHECK(tb->view()->is(Core::ViewType::TitleBar));
|
||||
CHECK(tb->view()->asWrapper()->is(Core::ViewType::TitleBar));
|
||||
delete tb;
|
||||
delete group;
|
||||
|
||||
KDDW_TEST_RETURN(true);
|
||||
}
|
||||
|
||||
static const auto s_tests = std::vector<KDDWTest> { TEST(tst_titleBarCtor) };
|
||||
|
||||
#include "../tests_main.h"
|
||||
Reference in New Issue
Block a user