diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2019-10-11 15:21:54 +0200 |
---|---|---|
committer | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2019-10-18 10:53:34 +0200 |
commit | 52484cc4b6696c8a5c1f69125d81eb0cede8cdb2 (patch) | |
tree | 4d5b0d4135104a7a623325fb761b615760630b98 /tests/auto/widgets/widgets/qsplitter/tst_qsplitter.cpp | |
parent | dce8849037ee079d6b09dd4022aa80aa670caccd (diff) |
Widget tests: Skip tests that fail on Wayland
Either by testing for platform name or window activation.
After this gets in, we can enable widget tests in the Wayland bot, which
hopefully will reduce the number of regressions in the Wayland plugin.
Fixes: QTBUG-62188
Change-Id: I71ce8abd6b5891e5b953126b1c35345892585931
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'tests/auto/widgets/widgets/qsplitter/tst_qsplitter.cpp')
-rw-r--r-- | tests/auto/widgets/widgets/qsplitter/tst_qsplitter.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/widgets/widgets/qsplitter/tst_qsplitter.cpp b/tests/auto/widgets/widgets/qsplitter/tst_qsplitter.cpp index cbeb77a25e..cc65accdc3 100644 --- a/tests/auto/widgets/widgets/qsplitter/tst_qsplitter.cpp +++ b/tests/auto/widgets/widgets/qsplitter/tst_qsplitter.cpp @@ -278,6 +278,9 @@ void tst_QSplitter::saveAndRestoreState() void tst_QSplitter::saveAndRestoreStateOfNotYetShownSplitter() { + if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive)) + QSKIP("Wayland: This fails. Figure out why."); + QSplitter *spl = new QSplitter; QLabel *l1 = new QLabel; QLabel *l2 = new QLabel; @@ -590,6 +593,9 @@ void tst_QSplitter::testShowHide_data() void tst_QSplitter::testShowHide() { + if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive)) + QSKIP("Wayland: This fails. Figure out why."); + QFETCH(bool, hideWidget1); QFETCH(bool, hideWidget2); @@ -716,6 +722,9 @@ void tst_QSplitter::replaceWidget_data() void tst_QSplitter::replaceWidget() { + if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive)) + QSKIP("Wayland: This fails. Figure out why."); + QFETCH(int, index); QFETCH(bool, visible); QFETCH(bool, collapsed); @@ -962,6 +971,9 @@ class MyTextEdit : public QTextEdit void tst_QSplitter::task169702_sizes() { + if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive)) + QSKIP("Wayland: This fails. Figure out why."); + QWidget topLevel; // Create two nested (non-collapsible) splitters QSplitter* outerSplitter = new QSplitter(Qt::Vertical, &topLevel); |