test return value from QTest::qWaitForWindowExposed
This commit is contained in:
parent
3ad4798ca6
commit
dfac32f0e4
@ -72,7 +72,7 @@ void DialogNativeTest::cleanupTestCase()
|
||||
|
||||
void DialogNativeTest::size()
|
||||
{
|
||||
QTest::qWaitForWindowExposed(m_dialog);
|
||||
QVERIFY(QTest::qWaitForWindowExposed(m_dialog));
|
||||
|
||||
QCOMPARE(m_content->width(), (qreal)100);
|
||||
QCOMPARE(m_content->height(), (qreal)100);
|
||||
@ -90,7 +90,7 @@ void DialogNativeTest::size()
|
||||
|
||||
void DialogNativeTest::position()
|
||||
{
|
||||
QTest::qWaitForWindowExposed(m_dialog);
|
||||
QVERIFY(QTest::qWaitForWindowExposed(m_dialog));
|
||||
|
||||
QCOMPARE(m_dialog->x(), 0);
|
||||
QCOMPARE(m_dialog->y(), 49);
|
||||
|
@ -80,7 +80,7 @@ void IconItemTest::initTestCase()
|
||||
m_view = new QQuickView();
|
||||
m_view->setSource(QUrl::fromLocalFile(QFINDTESTDATA("data/view.qml")));
|
||||
m_view->show();
|
||||
QTest::qWaitForWindowExposed(m_view);
|
||||
QVERIFY(QTest::qWaitForWindowExposed(m_view));
|
||||
|
||||
if (!m_view->rootObject() || !m_view->rootObject()->grabToImage()) {
|
||||
QSKIP("Cannot grab item to image.");
|
||||
@ -435,7 +435,7 @@ void IconItemTest::windowChanged()
|
||||
QQuickView newView;
|
||||
newView.setSource(QUrl::fromLocalFile(QFINDTESTDATA("data/view.qml")));
|
||||
newView.show();
|
||||
QTest::qWaitForWindowExposed(&newView);
|
||||
QVERIFY(QTest::qWaitForWindowExposed(&newView));
|
||||
|
||||
item->setProperty("visible", false);
|
||||
item->setParentItem(newView.rootObject());
|
||||
|
Loading…
Reference in New Issue
Block a user