38 lines
941 B
C++
38 lines
941 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/FloatingWindow.h"
|
|
#include "controllers/Frame.h"
|
|
#include "controllers/DockWidget.h"
|
|
|
|
#include "qtquick/Platform_qtquick.h"
|
|
|
|
#include <QQmlContext>
|
|
#include <QQmlEngine>
|
|
|
|
TEST_CASE("FloatingWindow Ctor")
|
|
{
|
|
auto dw = new Controllers::DockWidget("dw1");
|
|
// CHECK(dw->view()->rootView()->is(Type::DockWidget));
|
|
dw->view()->show();
|
|
|
|
/// Wait for FloatingWindow to be created
|
|
// Platform::instance()->tests_wait(100);
|
|
|
|
auto rootView = dw->view()->rootView();
|
|
REQUIRE(rootView);
|
|
|
|
// CHECK(rootView->is(Type::FloatingWindow));
|
|
|
|
delete dw;
|
|
}
|