qt5base-lts/tests/manual/wasm
Mikolaj Boc fb8832de9c Make the promises js-less using a newly introduced thunk pool
Since we cannot rely on the clients specifying a suitable CSP that will
not forbid execution of js injections, we have to refrain from using
any explicit <script> elements. To keep the promise system working, a
thunk pool was introduced which keeps track of a limited pool of promise
callback exports. In case the resources are busy, pending calls are
enqueued. This works since the JS Promise.then/catch/finally always fire,
even on ready/failed promises.
As the situation of full thunk pool allocation is unlikely to happen
en masse IRL, the solution should not adversely affect the performance.
Heavy unit tests were created to confirm the solution works as expected.

Task-number: QTBUG-99611
Change-Id: I0e6982d4ee76a4263b59e72b004b3ff2f167e4df
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
2022-07-07 06:28:13 +02:00
..
a11y wasm: begin work on accessibility backend 2022-07-06 17:56:58 +02:00
clipboard Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
cursors Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
eventloop Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
localfiles Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qstdweb Make the promises js-less using a newly introduced thunk pool 2022-07-07 06:28:13 +02:00
qtwasmtestlib Enhance the qtwasmtestlib with comparison functions and status reporting 2022-07-05 21:18:30 +02:00
rasterwindow wasm: Improve wheel event handling 2022-05-24 03:10:10 +02:00
CMakeLists.txt wasm: begin work on accessibility backend 2022-07-06 17:56:58 +02:00
README.md wasm: add qtwasmtestlib 2022-06-29 15:09:02 +02:00

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