qt6-bb10/tests/manual/wasm
Morten Sørvig db93cd4f61 wasm: Don't suppress exceptions during main()
If there's e.g. an infinite loop during main() that
would previously result in a blank page, but not error
message. The expected case is that we would get a RangeError
exception, but that exception never reaches the catch
handlers in qtloader.js.

Work around this by setting noInitialRun, followed by
calling main manually. We then need to handle the case
where the app.exec() workaround throws, which should
not trigger an error.

Pick-to: 6.7
Change-Id: Ia8431279308770981316cd168e4316341bfb2531
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
2023-12-20 00:44:28 +00:00
..
a11y Make WASM export names different across modules 2023-06-20 09:08:03 +02:00
clipboard Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
cursors Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
eventloop Make WASM export names different across modules 2023-06-20 09:08:03 +02:00
localfiles Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
network Make WASM export names different across modules 2023-06-20 09:08:03 +02:00
qstdweb wasm: add QIODevices for accessing JS data 2023-10-25 17:56:55 +02:00
qtloader Set up a manual test for qt loader 2022-11-24 18:47:49 +01:00
qtloader_integration wasm: Don't suppress exceptions during main() 2023-12-20 00:44:28 +00:00
qtwasmtestlib Make WASM export names different across modules 2023-06-20 09:08:03 +02:00
rasterwindow Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
selenium/qwasmwindow wasm tests: Fix and clean manual Selenium test 2023-11-08 18:24:18 +01:00
shared Add test filter argument to wasm js test runner 2023-06-15 18:55:32 +02:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
README.md wasm: add qtwasmtestlib 2022-06-29 15:09:02 +02:00

README.md

Manual tests and examples for Qt on WebAssembly

These examples demonstrates various technical aspects of the Qt for WebAssambly platform port, and can be used as a reference when writing application code.

Content

cursors         Cursor handling
eventloop       Event loops, application startup, dialog exec()
localfiles      Local file download and upload
rasterwindow    Basic GUI app, event handling
qtwasmtestlib   native auto test framework