forked from qt-creator/qt-creator
QmlProfiler: Fix flamegraph test
Change-Id: I27d7067a844e614334a5faedcb2915b3a24ae5e0 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
@@ -64,7 +64,7 @@ void FlameGraphViewTest::testSelection()
|
|||||||
});
|
});
|
||||||
|
|
||||||
QSignalSpy spy(&view, SIGNAL(typeSelected(int)));
|
QSignalSpy spy(&view, SIGNAL(typeSelected(int)));
|
||||||
QTest::mouseClick(view.childAt(250, 250), Qt::LeftButton, Qt::NoModifier, QPoint(5, 495));
|
QTest::mouseClick(view.childAt(250, 250), Qt::LeftButton, Qt::NoModifier, QPoint(15, 485));
|
||||||
if (spy.isEmpty())
|
if (spy.isEmpty())
|
||||||
QVERIFY(spy.wait());
|
QVERIFY(spy.wait());
|
||||||
|
|
||||||
@@ -74,7 +74,7 @@ void FlameGraphViewTest::testSelection()
|
|||||||
|
|
||||||
// Click in empty area deselects
|
// Click in empty area deselects
|
||||||
expectedType = -1;
|
expectedType = -1;
|
||||||
QTest::mouseClick(view.childAt(250, 250), Qt::LeftButton, Qt::NoModifier, QPoint(495, 50));
|
QTest::mouseClick(view.childAt(250, 250), Qt::LeftButton, Qt::NoModifier, QPoint(485, 50));
|
||||||
QCOMPARE(spy.count(), 2);
|
QCOMPARE(spy.count(), 2);
|
||||||
|
|
||||||
view.onVisibleFeaturesChanged(1 << ProfileBinding);
|
view.onVisibleFeaturesChanged(1 << ProfileBinding);
|
||||||
|
|||||||
Reference in New Issue
Block a user