mirror of https://github.com/qt/qtbase.git
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 Pick-to: 6.8 Change-Id: I49c0f53b16f501072cbbe92ddd79ff21fb9adb27 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
This commit is contained in:
parent
1d409c0854
commit
66591b658f
|
@ -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 scroll();
|
||||
void flush_data();
|
||||
void flush();
|
||||
|
||||
void staticContents();
|
||||
|
@ -267,11 +268,22 @@ private:
|
|||
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()
|
||||
{
|
||||
QFETCH(Qt::WindowState, windowState);
|
||||
Window window;
|
||||
window.setGeometry(20, 20, 200, 200);
|
||||
window.showMaximized();
|
||||
window.setWindowState(windowState);
|
||||
window.setVisible(true);
|
||||
|
||||
QTRY_VERIFY(window.isExposed());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue