forked from qt-creator/qt-creator
FlameGraph: Verify that window is exposed in test
Change-Id: I54b434d41f25227b48be21c60e82ff5294aae1c1 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -46,7 +46,7 @@ void FlameGraphViewTest::initTestCase()
|
|||||||
QCOMPARE(manager.state(), QmlProfilerModelManager::Done);
|
QCOMPARE(manager.state(), QmlProfilerModelManager::Done);
|
||||||
view.resize(500, 500);
|
view.resize(500, 500);
|
||||||
view.show();
|
view.show();
|
||||||
QTest::qWaitForWindowExposed(&view);
|
QVERIFY(QTest::qWaitForWindowExposed(&view));
|
||||||
}
|
}
|
||||||
|
|
||||||
void FlameGraphViewTest::testSelection()
|
void FlameGraphViewTest::testSelection()
|
||||||
@@ -110,7 +110,7 @@ void FlameGraphViewTest::testContextMenu()
|
|||||||
testMenu.addActions(QmlProfilerTool::profilerContextMenuActions());
|
testMenu.addActions(QmlProfilerTool::profilerContextMenuActions());
|
||||||
testMenu.addSeparator();
|
testMenu.addSeparator();
|
||||||
testMenu.show();
|
testMenu.show();
|
||||||
QTest::qWaitForWindowExposed(testMenu.window());
|
QVERIFY(QTest::qWaitForWindowExposed(testMenu.window()));
|
||||||
targetWidth = testMenu.width() / 2;
|
targetWidth = testMenu.width() / 2;
|
||||||
int prevHeight = testMenu.height();
|
int prevHeight = testMenu.height();
|
||||||
QAction dummy(QString("target"), this);
|
QAction dummy(QString("target"), this);
|
||||||
|
|||||||
Reference in New Issue
Block a user