From e02e262a04ccf9ad0d320074d9260e41492f1b84 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 5 Aug 2020 14:29:50 +0200 Subject: tests: Skip pdf.js disabled test on QtWebKit with PDF image plugin Since Qt 5.15, QtWebEngine comes with Qt PDF as TP: https://wiki.qt.io/New_Features_in_Qt_5.15#Technology_Preview_Modules This also includes a new PDF image plugin in /usr/lib/qt/plugins/imageformats/libqpdf.so. Due to that, QtWebKit now displays the PDF's first page as image rather than triggering a download. See https://github.com/qtwebkit/qtwebkit/issues/1013 Thus, detect this condition (both QtWebKit and QtWebEngine installed) and skip the test in that scenario. --- pytest.ini | 1 + 1 file changed, 1 insertion(+) (limited to 'pytest.ini') diff --git a/pytest.ini b/pytest.ini index a034a27b3..1235efb4b 100644 --- a/pytest.ini +++ b/pytest.ini @@ -38,6 +38,7 @@ markers = unicode_locale: Tests which need an unicode locale to work qtwebkit6021_xfail: Tests which would fail on WebKit version 602.1 js_headers: Sets JS headers dynamically on QtWebEngine (unsupported on some versions) + qtwebkit_pdf_imageformat_skip: Broken on QtWebKit with PDF image format plugin installed qt_log_level_fail = WARNING qt_log_ignore = ^SpellCheck: .* -- cgit v1.2.3-54-g00ecf