tests: extend tst_QBackingStore::flush()
There is a bug in GNOME 46.0 on Ubuntu 24.04 Wayland when showing a maximized or fullscreen window. Task-number: QTBUG-127920 Change-Id: I49c0f53b16f501072cbbe92ddd79ff21fb9adb27 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io> (cherry picked from commit 66591b658f4270252f8bf342dac7e2a9bcad34a0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
c178110208
commit
cf32e1697e
9
tests/auto/gui/kernel/qbackingstore/BLACKLIST
Normal file
9
tests/auto/gui/kernel/qbackingstore/BLACKLIST
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# QTBUG-127920
|
||||||
|
[flush:single-buffer:maximized]
|
||||||
|
wayland ubuntu-24.04
|
||||||
|
[flush:single-buffer:fullscreen]
|
||||||
|
wayland ubuntu-24.04
|
||||||
|
[flush:double-buffer:maximized]
|
||||||
|
wayland ubuntu-24.04
|
||||||
|
[flush:double-buffer:fullscreen]
|
||||||
|
wayland ubuntu-24.04
|
@ -31,6 +31,7 @@ private slots:
|
|||||||
void scrollRectInImage();
|
void scrollRectInImage();
|
||||||
|
|
||||||
void scroll();
|
void scroll();
|
||||||
|
void flush_data();
|
||||||
void flush();
|
void flush();
|
||||||
|
|
||||||
void staticContents();
|
void staticContents();
|
||||||
@ -267,11 +268,22 @@ private:
|
|||||||
QBackingStore backingStore;
|
QBackingStore backingStore;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
void tst_QBackingStore::flush_data()
|
||||||
|
{
|
||||||
|
QTest::addColumn<Qt::WindowState>("windowState");
|
||||||
|
|
||||||
|
QTest::newRow("normal") << Qt::WindowNoState;
|
||||||
|
QTest::newRow("maximized") << Qt::WindowMaximized;
|
||||||
|
QTest::newRow("fullscreen") << Qt::WindowFullScreen;
|
||||||
|
}
|
||||||
|
|
||||||
void tst_QBackingStore::flush()
|
void tst_QBackingStore::flush()
|
||||||
{
|
{
|
||||||
|
QFETCH(Qt::WindowState, windowState);
|
||||||
Window window;
|
Window window;
|
||||||
window.setGeometry(20, 20, 200, 200);
|
window.setGeometry(20, 20, 200, 200);
|
||||||
window.showMaximized();
|
window.setWindowState(windowState);
|
||||||
|
window.setVisible(true);
|
||||||
|
|
||||||
QTRY_VERIFY(window.isExposed());
|
QTRY_VERIFY(window.isExposed());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user