qutebrowser/tests/unit
Florian Bruhin 3f31a0005a Fix mimetype for PDF.js files on Windows
With windows-2022 and windows-2025 on GitHub Actions,
we get:

    qutescheme:data_for_url:128 url: qute://pdfjs/web/viewer.mjs, path: /web/viewer.mjs, host pdfjs
    webenginequtescheme:requestStarted:105 Returning text/plain data

which causes:

    JS: [qute://pdfjs/build/pdf.mjs:0] Failed to load module script: Expected a
    JavaScript module script but the server responded with a MIME type of
    "text/plain". Strict MIME type checking is enforced for module scripts per
    HTML spec.

It's unclear why we get text/plain back there in the first place (can't
reproduce on a local Windows 11 install), but it's definitely wrong, so let's
just override that problematic case.
2025-06-05 13:41:28 +02:00
..
api reuse: Initial copyright text update for myself 2023-07-23 12:49:05 +02:00
browser tests: Properly delete webengine DownloadManager objects 2025-05-07 14:06:03 +02:00
commands Fix remaining references to old commands 2023-08-15 20:15:48 +02:00
completion Add test to ensure `set_model(None)` cleans up 2024-06-09 18:16:01 +12:00
components Drop unneeded nonlocal 2025-03-31 08:44:45 +02:00
config tests: Fix TestYamlMigrations.test_user_agent 2025-04-08 20:50:13 +02:00
extensions Revert "walk_module workaround for PyInstaller" 2023-10-28 10:44:55 +13:00
javascript Fix and simplify JS quirks tests 2025-03-25 14:23:48 +01:00
keyinput Use str.removeprefix() and str.removesuffix() 2024-10-13 18:24:44 +02:00
mainwindow reuse: Replace last copyright texts 2023-07-23 12:59:11 +02:00
misc Avoid version warnings with PyQtWebEngine-Qt5 5.15.17 2025-05-29 23:42:40 +02:00
scripts Fix lint/tests 2023-07-23 14:10:10 +02:00
utils Fix mimetype for PDF.js files on Windows 2025-06-05 13:41:28 +02:00
test_app.py reuse: Initial copyright text update for myself 2023-07-23 12:49:05 +02:00
test_qt_machinery.py Use builtin list/dict/set/... types for annotations 2024-10-15 11:54:49 +02:00
test_qutebrowser.py reuse: Initial copyright text update for myself 2023-07-23 12:49:05 +02:00