qt5base-lts/tests/manual/wasm/qstdweb/iodevices_auto.html
Morten Sørvig fde6bdfc5a wasm: add QIODevices for accessing JS data
BlobIoDevice: Supports reading data from a JS Blob,
which can be a File (on disk) or some other object
which can provide data. The native access functions
are async and using this class requires that asyncify
is available.

Uint8ArrayIODevice: Supports reading and writing to
a Uint8Array / ArrayBuffer. Similar to the existing
QByteArray::fromEcmaUint8Array() API, except that it
supports incremental accesss.

Change-Id: Ic5de3534ff75eb6c745287b73b15ccd92d74ac2c
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
2023-10-25 17:56:55 +02:00

11 lines
339 B
HTML

<!doctype html>
<script type="text/javascript" src="qtwasmtestlib.js"></script>
<script type="text/javascript" src="iodevices_auto.js"></script>
<script>
window.onload = () => {
runTestCase(iodevices_auto_entry, document.getElementById("log"));
};
</script>
<p>Running qstdweb iodevices auto test.</p>
<div id="log"></div>