Commit Graph

213 Commits

Author SHA1 Message Date
Florian Bruhin de593e6a8c tests: Add some marks for Qt 5 / Qt 6 2022-08-23 18:31:41 +02:00
Florian Bruhin c5a51eb0bc Drop Qt < 5.15
Fixes #7091

TODO: Add changelog
2022-08-23 18:31:41 +02:00
Florian Bruhin 323b64c669 ignore hypothesis warnings 2022-04-26 17:14:38 +02:00
Florian Bruhin 9fbaba228c Ignore certifi deprecation warning
See https://github.com/certifi/python-certifi/issues/170
2022-04-26 17:14:38 +02:00
Florian Bruhin 7535ae3fd8 Ignore Python 3.10 distutils deprecation warning
See https://github.com/ionelmc/python-hunter/issues/97
2021-05-05 20:04:48 +02:00
Florian Bruhin e0657a550a tests: Ignore new Python 3.10.0a7 ImportWarnings
https://github.com/pypa/setuptools/pull/2517
https://github.com/pypa/setuptools/pull/2523
(something in tox/virtualenv probably uses an older setuptools...)

https://github.com/benjaminp/six/pull/352 (not released yet)
2021-04-07 22:30:23 +02:00
Florian Bruhin 40c72f849d flatpak: Skip download dispatcher tests 2021-03-31 13:10:09 +02:00
Florian Bruhin 54a0dc1e38 notifications: Replace @qtwebengine_py_5_15 by @pyqtwebengine>=5.15 2021-03-25 15:41:56 +01:00
Florian Bruhin 2f592f7ce6 Merge remote-tracking branch 'origin/pr/5457' into dev 2021-03-24 14:12:36 +01:00
Florian Bruhin 0a38fff4c6 Simplify test_greasemonkey via js_tester fixture 2021-03-09 18:42:19 +01:00
Florian Bruhin 4b8c9336a3 Add marker to pytest.ini 2021-01-27 14:28:05 +01:00
Florian Bruhin 62687b1f82 tests: Ignore SixMetaPathImporter warning
Seems to be raised when importing six (via tldextract/requests/urllib)
on Python 3.10: https://github.com/benjaminp/six/issues/341

See #6068
2021-01-26 20:44:22 +01:00
Florian Bruhin 8760dc1b17 tests: Disable hypothesis fixture health checks 2021-01-11 11:12:53 +01:00
freddii c8004e4653 fixed typing mistake 2020-12-28 20:21:32 +01:00
Florian Bruhin 3126ce6686 tests: Warn about processes which don't exit cleanly 2020-11-10 18:57:23 +01:00
Florian Bruhin cc8de06082 ci: Update Python/Qt versions 2020-11-04 18:30:04 +01:00
Florian Bruhin 160831c5bd old qt: Remove conditional and old tests 2020-11-04 18:30:04 +01:00
Florian Bruhin 2b8b71a82d tests: Ignore 'could not de-queue request' error globally
See #5787
2020-10-11 16:23:29 +02:00
Florian Bruhin 3abfd78c25 Fix some a/an spelling mistakes 2020-09-06 16:37:59 +02:00
Florian Bruhin e02e262a04 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.
2020-08-05 15:01:21 +02:00
Florian Bruhin 41bcada133 Merge branch 'master' into pr/5457 2020-07-31 14:35:59 +02:00
Florian Bruhin 7cae34f829 pytest: Set required_plugins 2020-07-29 11:30:35 +02:00
Florian Bruhin 1c26921686 pytest: Use new strict flags 2020-07-29 10:32:46 +02:00
Ash 2ba6cce9eb Merge branch 'master' into dbus-notify 2020-07-08 17:33:59 -07:00
Florian Bruhin a6817bd086 tests: Fix JS header tests
This is a follow-up to f0eed465ab
See #4657
2020-06-19 16:21:03 +02:00
Ash 77d4d3f4d4 Add support for onclose callbacks on notifications. 2020-06-03 23:43:26 -07:00
Florian Bruhin 612e86f98e tests: Adjust warning filter for changed hypothesis warning
See https://github.com/HypothesisWorks/hypothesis/pull/2387
and https://github.com/HypothesisWorks/hypothesis/issues/2370
2020-04-20 23:40:54 +02:00
Florian Bruhin b2f48b5839 Upgrade to pytest 5.4
This reverts commit c7b0023dcd.
There's a new pytest-rerunfailures version out now.
2020-03-21 17:51:18 +01:00
Florian Bruhin c7b0023dcd Revert "Upgrade to pytest 5.4"
This reverts commit 738d0ab875.

Probably a bad idea before this is fixed:
https://github.com/pytest-dev/pytest-rerunfailures/issues/103
2020-03-12 22:42:18 +01:00
Florian Bruhin 738d0ab875 Upgrade to pytest 5.4
- Include pygments as dependency to enable code highlighting
- Remove -rfEw from options because -rfE is now the default and w had no
  effect.
2020-03-12 22:34:31 +01:00
Florian Bruhin f33e15aaca Ignore hypothesis/pytest warning for now
See https://github.com/HypothesisWorks/hypothesis/issues/2370
2020-03-12 13:16:52 +01:00
Florian Bruhin 02c3f02edc Re-enable renderer process tests on Qt 5.14
QTBUG-80085 has been fixed.
This mostly reverts d8745237d9.
See #5013
2019-12-09 00:38:10 +01:00
Florian Bruhin 8cbf6305e9 tests: Remove issue3572 marker
See #3572
2019-11-21 14:33:04 +01:00
Florian Bruhin c089950ff2 Adjust message filters for Qt 5.14 debug build
See #5013
2019-11-21 13:46:22 +01:00
Florian Bruhin 7bfc56c0d9 Remove outdated issue2478 marker
Looks like this works on Windows nowadays.
See #2478
2019-11-19 16:40:48 +01:00
Florian Bruhin 23061dbe10 tests: Change some marks from skipif to xfail 2019-11-19 16:20:40 +01:00
Florian Bruhin d8745237d9 Skip renderProcessTerminated tests on Qt 5.14 for now
See #5013

This should allow us to start running Qt 5.14 tests on Travis.
2019-11-19 16:11:13 +01:00
Florian Bruhin 01aea3d67c Enable QtWebEngine notification tests on >= 5.13 2019-07-05 18:25:59 +02:00
Jimmy b58cb949e4 Remove pytest-faulthandler external plugin.
It is in the core as of pytest 5.0.0.
2019-07-02 19:07:14 +12:00
Florian Bruhin 1f1bd37aa5 Also ignore bogus warning in tests 2019-06-18 13:05:46 +02:00
Florian Bruhin 9cccb612fc Remove pytest-bdd workaround 2019-02-26 10:18:53 +01:00
Florian Bruhin 046dde013d tests: Ignore DirectWrite warning 2019-02-25 11:09:51 +01:00
Florian Bruhin 8d5aef6f6e Add new warning to qt_log_ignore
This gets shown from time to time in test_take_a_tab_from_the_same_window in
tabs.feature.
2019-02-17 00:01:32 +01:00
Florian Bruhin 5a319cc505 Be more strict about Python deprecation warnings again
The warnings caught in earlyinit.py got fixed in the affected dependencies.
The collections.abc warning also seems to be fixed in everything but PyYAML.
2019-02-16 20:10:29 +01:00
Florian Bruhin b6a7fc5984 Update pytest warnings ignore
We don't need the one for pytest-benchmark anymore, but we need one for
pytest-bdd.

See https://github.com/pytest-dev/pytest-bdd/pull/288
See #4511
2019-02-16 19:59:55 +01:00
Florian Bruhin 3fc545381c Ignore new Qt warning 2019-01-13 10:38:05 +01:00
Florian Bruhin d299e48960 Work around pytest-bdd issues
See https://github.com/ionelmc/pytest-benchmark/issues/124
and https://github.com/ionelmc/pytest-benchmark/issues/125
2018-10-24 10:57:17 +02:00
Florian Bruhin 185904070a Fix pytest warning precedence
If we use filterwarnings with the commandline argument, the argument wins and
all warnings are an error, even the collections DeprecationWarning.
2018-10-24 10:57:17 +02:00
Florian Bruhin 6abe8f2c97 Ignore QtNetwork warning on macOS 2018-07-03 13:22:05 +02:00
Florian Bruhin e9c78b29ed Ignore Python 3.7 collections.abc warning
Related issues/PRs:
https://github.com/yaml/pyyaml/pull/181
https://github.com/pypa/setuptools/issues/1401
https://github.com/pallets/markupsafe/pull/98
https://github.com/yaml/pyyaml/pull/181
https://github.com/pallets/jinja/pull/867
2018-06-27 16:01:21 +02:00
Jimmy 13249329f7 Greasemonkey: skip window scoping test on webkit
The implementation of Proxy in JSCore used by current QtWebkit (webkit
602.1) doesn't support the `set()` handler for whatever reason. So
instead of testing for a specific behaviour that we can't ensure on that
version let's just skip the tests and handle user complaints with
sympathy.
2018-05-20 18:42:40 +12:00
Florian Bruhin 6f9c62b24a Improve marker descriptions 2018-02-26 07:56:51 +01:00
Jay Kamat 76bf35cbdd
Add qtbug60673 markers to relevant tests 2018-02-25 19:00:15 -05:00
Florian Bruhin 53e7d13c2d Skip failing scrolling tests on Qt 5.10 on Travis
See #3572
2018-02-08 10:42:55 +01:00
Florian Bruhin 20d5b4e384 Update pytest log handling
In pytest 3.4, we now need to explicitly set the log level and caplog.at_level
now sets the level of the root handler.
2018-02-06 23:17:40 +01:00
Florian Bruhin 56759cca6b Make more unit tests run with Qt 5.7.1 on a newer Linux 2017-11-28 08:16:07 +01:00
Florian Bruhin 75555fc244 Fix warning regex 2017-11-21 13:21:50 +01:00
cryzed 222c51aa6e Ignore additional Qt error messages 2017-11-08 16:34:40 +01:00
Florian Bruhin be08cee63c Make testsuite work with LC_ALL=C 2017-11-07 17:23:38 +01:00
Florian Bruhin cbe0ff94a1 Ignore inotify_add_watch Qt warning
This happens on Travis from time to time.
2017-10-13 09:12:31 +02:00
Florian Bruhin cc871389c9 Increase pytest-faulthandler timeout a bit
See #2777
2017-10-04 08:58:35 +02:00
Florian Bruhin 46cfd5353d Use a pytest marker to fake an OS 2017-09-20 11:30:18 +02:00
Florian Bruhin 3772dc5930 Drop legacy QtWebKit support
See #2742
2017-09-18 23:01:17 +02:00
Florian Bruhin 852baaa8c3 Drop support for Qt < 5.7.1
See #2742
2017-09-18 23:01:17 +02:00
Florian Bruhin 5a11c96e56 Don't fail tests because of OpenSSL 1.1 warnings
"Downloading with SSL errors" from downloads.feature still fails, but like this,
at least all other tests pass without the need to modify LD_LIBRARY_PATH.
2017-09-14 18:23:40 +02:00
Florian Bruhin 50aab7a802 Skip tests needing AppDataLocation on older Qt versions 2017-09-13 21:32:22 +02:00
Florian Bruhin f6a0500bd3 Merge branch 'master' into new-config
This pulls the travis changes to drop the old Qt 5.2 environment.
2017-09-11 18:39:41 +02:00
Florian Bruhin 1491f20201 Remove geolocation tests
They just cause more trouble than they're worth.
2017-09-11 18:32:23 +02:00
Ryan Roden-Corrent 6e0f65c063 Remove duplicate line from pytest.ini. 2017-09-07 07:34:26 -04:00
Ryan Roden-Corrent 111846a909 Merge remote-tracking branch 'upstream/master' into configmerge 2017-08-20 21:18:47 -04:00
Florian Bruhin 81b260998d Ignore a new Geoclue error during tests 2017-08-08 06:25:50 +02:00
Ryan Roden-Corrent 71b71dbc58 Merge remote-tracking branch 'upstream/master' into HEAD 2017-08-06 18:13:49 -04:00
Florian Bruhin 79e7eb6495 pytest: Show Median instead of Mean for benchmarks 2017-07-25 17:37:18 +02:00
Florian Bruhin 79c088d3a4 pytest.ini: Add benchmark-columns 2017-07-24 16:52:36 +02:00
Florian Bruhin a3834d043b pytest: Set testpaths 2017-07-19 12:22:30 +02:00
Florian Bruhin ad615941a2 Replace OS X with macOS 2017-07-08 11:12:43 +02:00
Florian Bruhin 378914b327 Ignore another new geoclue error during tests 2017-07-04 18:01:24 +02:00
Florian Bruhin f71e678d80 Ignore a new Geoclue error during tests 2017-07-04 15:09:23 +02:00
Florian Bruhin 79c11d6008 Skip test_configdata.test_init_benchmark on Travis in Docker
See #2777
2017-07-04 15:09:23 +02:00
Florian Bruhin 250da212cd Adjust tests for new QtWebKit-NG 2017-06-09 10:28:41 +02:00
Florian Bruhin 7dba877354 tests: Update "Unable to set geometry" ignore 2017-03-31 13:05:34 +02:00
Florian Bruhin e28eabe5eb Add marker for #2478 2017-03-31 13:03:17 +02:00
Florian Bruhin a3a885f053 Ignore bogus Qt warning during tests 2017-03-31 13:03:17 +02:00
Florian Bruhin 98e1603abb Don't make SSL resolve errors fail tests 2017-02-09 15:19:26 +01:00
Florian Bruhin af40439f4a tests: Ignore more QPainter::end warnings 2017-02-08 15:27:45 +01:00
Florian Bruhin 208ee04bdc Add simple tests for QtWebEngine renderer crash/kill 2017-02-08 09:41:55 +01:00
Florian Bruhin ccb6594e07 Ignore QPainter warning in tests
This happens on Debian Jessie from time to time.
2017-02-08 00:58:41 +01:00
Florian Bruhin 91bdc00410 Make tests work with QtWebKit-NG
Fixes #1571
2017-02-06 08:48:08 +01:00
Florian Bruhin 348a50ad69 Fix inserting text with QtWebEngine
The insertText event doesn't seem to be available with newer Chromium releases,
which means this broke (probably with Qt 5.7.1).

Fixes #2183
Fixes #2217
2017-02-06 08:06:58 +01:00
Florian Bruhin de50f30b9b Replace all GitHub links 2017-02-05 00:13:11 +01:00
Florian Bruhin c7970eb2ee Xfail tests which fail on Docker/Travis
See #2183
2016-12-20 21:32:46 +01:00
Florian Bruhin d04534dc33 Reenable @qtwebengine_createWindow tests
Closes #2121
2016-11-15 07:03:13 +01:00
Florian Bruhin 2ded5ef6dd tests: Get rid of flaky_once mark 2016-11-10 22:45:27 +01:00
Florian Bruhin 40c5c75a6c tests: Add a js_prompt marker 2016-11-10 22:45:27 +01:00
Sebastian Frysztak 97d00b2355 Ignore NetworkManager-related Qt warnings
(discussed in #2016)
2016-10-08 11:10:27 +02:00
Florian Bruhin 861ce478b3 Add a 'this' pytest marker 2016-09-07 20:26:41 +02:00
Florian Bruhin a119e9d5b0 Mark :insert-text with undo test as xfail on OS X 2016-09-07 19:01:24 +02:00
Florian Bruhin 1106104700 Add a @qtwebengine_flaky marker 2016-09-06 21:43:02 +02:00
Florian Bruhin 050507c0a6 Merge branch 'webengine-createwindow' 2016-09-05 17:42:15 +02:00
Florian Bruhin d71aa2c0ba Ignore IMAGEFORMAT_WHITELIST warning in tests 2016-09-05 17:01:55 +02:00