/* 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 "kddockwidgets/controllers/Group.h" #include "kddockwidgets/controllers/Stack.h" #include "kddockwidgets/controllers/TabBar.h" TEST_CASE("TabBar ctor") { Controllers::Group group(nullptr, {}); Controllers::Stack stack(&group, {}); Controllers::TabBar tabBar(&stack); CHECK(tabBar.view()->is(Type::TabBar)); CHECK(tabBar.view()->asWrapper()->is(Type::TabBar)); }