Make tst_qquickframebufferobject pass on macOS
The test has not been run in the CI, so the problem went unnoticed for a long time. Change-Id: I42a44a5fb89c0bd78e8997d4841e85672c73acdb Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
This commit is contained in:
parent
e08c42e9fd
commit
8cf186cc7c
|
@ -192,7 +192,8 @@ void tst_QQuickFramebufferObject::testThatStuffWorks()
|
|||
item->setMsaa(msaa);
|
||||
|
||||
view.show();
|
||||
QTest::qWaitForWindowExposed(&view);
|
||||
view.requestActivate();
|
||||
QTest::qWaitForWindowActive(&view);
|
||||
|
||||
QImage result = view.grabWindow();
|
||||
|
||||
|
@ -231,7 +232,8 @@ void tst_QQuickFramebufferObject::testInvalidate()
|
|||
item->setTextureSize(QSize(200, 200));
|
||||
|
||||
view.show();
|
||||
QTest::qWaitForWindowExposed(&view);
|
||||
view.requestActivate();
|
||||
QTest::qWaitForWindowActive(&view);
|
||||
|
||||
QCOMPARE(frameInfo.fboSize, QSize(200, 200));
|
||||
|
||||
|
|
Loading…
Reference in New Issue