forked from qt-creator/qt-creator
Tests: Fix flamegraphview test for Qt6
Change-Id: I38271f05c615290cddb4dba5579193a68fd32370 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
@@ -112,20 +112,20 @@ void tst_FlameGraphView::testZoom()
|
||||
QWindow *window = widget.windowHandle();
|
||||
|
||||
QCOMPARE(selectedTypeId(), -1);
|
||||
QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier, QPoint(widget.width() - 15,
|
||||
widget.height() - 15));
|
||||
QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier, QPoint(widget.width() - 25,
|
||||
widget.height() - 25));
|
||||
QTRY_VERIFY(selectedTypeId() != -1);
|
||||
const int typeId1 = selectedTypeId();
|
||||
|
||||
QTest::mouseDClick(window, Qt::LeftButton, Qt::NoModifier, QPoint(15, widget.height() - 15));
|
||||
QTest::mouseDClick(window, Qt::LeftButton, Qt::NoModifier, QPoint(25, widget.height() - 25));
|
||||
QTRY_VERIFY(selectedTypeId() != typeId1);
|
||||
QVERIFY(selectedTypeId() != -1);
|
||||
|
||||
QTest::mouseDClick(window, Qt::LeftButton, Qt::NoModifier, QPoint(widget.width() / 2,
|
||||
widget.height() / 2));
|
||||
QTRY_COMPARE(selectedTypeId(), -1);
|
||||
QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier, QPoint(widget.width() - 15,
|
||||
widget.height() - 15));
|
||||
QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier, QPoint(widget.width() - 25,
|
||||
widget.height() - 25));
|
||||
QTRY_COMPARE(selectedTypeId(), typeId1);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user