From 2b996236052bd5fea35038a70c83d488e047b40c Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Wed, 3 Jan 2018 10:47:18 +0100 Subject: [PATCH] FlameGraph: Verify that window is exposed in test Change-Id: I54b434d41f25227b48be21c60e82ff5294aae1c1 Reviewed-by: Christian Kandeler --- src/plugins/qmlprofiler/tests/flamegraphview_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/qmlprofiler/tests/flamegraphview_test.cpp b/src/plugins/qmlprofiler/tests/flamegraphview_test.cpp index f6e704a072b..e371bf584d1 100644 --- a/src/plugins/qmlprofiler/tests/flamegraphview_test.cpp +++ b/src/plugins/qmlprofiler/tests/flamegraphview_test.cpp @@ -46,7 +46,7 @@ void FlameGraphViewTest::initTestCase() QCOMPARE(manager.state(), QmlProfilerModelManager::Done); view.resize(500, 500); view.show(); - QTest::qWaitForWindowExposed(&view); + QVERIFY(QTest::qWaitForWindowExposed(&view)); } void FlameGraphViewTest::testSelection() @@ -110,7 +110,7 @@ void FlameGraphViewTest::testContextMenu() testMenu.addActions(QmlProfilerTool::profilerContextMenuActions()); testMenu.addSeparator(); testMenu.show(); - QTest::qWaitForWindowExposed(testMenu.window()); + QVERIFY(QTest::qWaitForWindowExposed(testMenu.window())); targetWidth = testMenu.width() / 2; int prevHeight = testMenu.height(); QAction dummy(QString("target"), this);