summaryrefslogtreecommitdiffstats
path: root/tests/auto/quick
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2021-07-01 10:13:12 +0200
committerMichal Klocek <michal.klocek@qt.io>2021-07-02 12:51:15 +0200
commit034e8e38e3d59ce294e3e6e3306623116a1f6d69 (patch)
treed105cc99d9ab294bb4c4edec5afa40200b6141b0 /tests/auto/quick
parent3a962d8a2d3b70639a195fe5fd442f6c653bbe8f (diff)
Skip grab window and changeLocale() test on QEMU
Task-number: QTBUG-94911 Change-Id: Ia381d2914740d0b0172df1af707b6ca1bdfd3d8e Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'tests/auto/quick')
-rw-r--r--tests/auto/quick/qquickwebengineview/CMakeLists.txt1
-rw-r--r--tests/auto/quick/qquickwebengineview/tst_qquickwebengineview.cpp10
2 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickwebengineview/CMakeLists.txt b/tests/auto/quick/qquickwebengineview/CMakeLists.txt
index 45c44034a..90cbb7a3d 100644
--- a/tests/auto/quick/qquickwebengineview/CMakeLists.txt
+++ b/tests/auto/quick/qquickwebengineview/CMakeLists.txt
@@ -9,5 +9,6 @@ qt_internal_add_test(tst_qquickwebengineview
Qt::WebEngineQuick
Qt::GuiPrivate
Qt::WebEngineQuickPrivate
+ Qt::TestPrivate
Test::Util
)
diff --git a/tests/auto/quick/qquickwebengineview/tst_qquickwebengineview.cpp b/tests/auto/quick/qquickwebengineview/tst_qquickwebengineview.cpp
index 63dbf0452..5f141aadc 100644
--- a/tests/auto/quick/qquickwebengineview/tst_qquickwebengineview.cpp
+++ b/tests/auto/quick/qquickwebengineview/tst_qquickwebengineview.cpp
@@ -44,6 +44,7 @@
#include <QtWebEngineQuick/private/qquickwebenginesettings_p.h>
#include <QtWebEngineCore/private/qtwebenginecore-config_p.h>
#include <qpa/qplatforminputcontext.h>
+#include <QtTest/private/qemulationdetector_p.h>
#include <functional>
@@ -369,6 +370,9 @@ QImage tryToGrabWindowUntil(QQuickWindow *window, std::function<bool(const QImag
void tst_QQuickWebEngineView::basicRenderingSanity()
{
+ if (QTestPrivate::isRunningArmOnX86())
+ QSKIP("Grab does not work with QEMU.");
+
showWebEngineView();
webEngineView()->setUrl(QUrl(QString::fromUtf8("data:text/html,<html><body bgcolor=\"%2300ff00\"></body></html>")));
@@ -408,6 +412,9 @@ void tst_QQuickWebEngineView::titleUpdate()
void tst_QQuickWebEngineView::transparentWebEngineViews()
{
+ if (QTestPrivate::isRunningArmOnX86())
+ QSKIP("Grab does not work with QEMU.");
+
showWebEngineView();
// This should not crash.
@@ -996,6 +1003,9 @@ void tst_QQuickWebEngineView::inputEventForwardingDisabledWhenActiveFocusOnPress
void tst_QQuickWebEngineView::changeLocale()
{
+ if (QTestPrivate::isRunningArmOnX86())
+ QSKIP("Does not work with QEMU. (QTBUG-94911)");
+
QStringList errorLines;
QUrl url("http://non.existent/");