tests: Test that a floating window is created
This commit is contained in:
@@ -101,8 +101,12 @@ void ViewWrapper_qtquick::setVisible(bool)
|
||||
|
||||
bool ViewWrapper_qtquick::isVisible() const
|
||||
{
|
||||
qFatal("not implemented");
|
||||
return {};
|
||||
if (QWindow *w = m_item->window()) {
|
||||
if (!w->isVisible())
|
||||
return false;
|
||||
}
|
||||
|
||||
return m_item->isVisible();
|
||||
}
|
||||
|
||||
void ViewWrapper_qtquick::move(int, int)
|
||||
|
||||
@@ -31,7 +31,8 @@ TEST_CASE("FloatingWindow Ctor")
|
||||
auto rootView = dw->view()->rootView();
|
||||
REQUIRE(rootView);
|
||||
|
||||
// CHECK(rootView->is(Type::FloatingWindow));
|
||||
CHECK(rootView->is(Type::FloatingWindow));
|
||||
CHECK(rootView->isVisible());
|
||||
|
||||
delete dw;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user