diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-06-14 14:58:53 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-07-02 06:21:52 +0000 |
commit | 755806f120b7e191043dcddd4ea9e26a66d142fa (patch) | |
tree | 60265d4a928ae89a4a51150bd2f390bae09f5db1 /tests/auto/core/origins/resources | |
parent | 0819b8321314a1dd4990dd3841d6b5e622a02076 (diff) |
Remove QRC->file special case
It was marked as to be removed for Qt6
Change-Id: I059c450aa6e5cad6d48ecdd2667abff21217d7e0
Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
(cherry picked from commit 01f45d0b536ac2dad7493c826907ded7a76f59d6)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests/auto/core/origins/resources')
-rw-r--r-- | tests/auto/core/origins/resources/websocket2.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/auto/core/origins/resources/websocket2.html b/tests/auto/core/origins/resources/websocket2.html new file mode 100644 index 000000000..7365143de --- /dev/null +++ b/tests/auto/core/origins/resources/websocket2.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html> + <head> + <title>WebSocket</title> + <script src="../qtwebchannel/qwebchannel.js"></script> + <script> + var result; + new QWebChannel(qt.webChannelTransport, channel => { + const ws = new WebSocket(channel.objects.echoServer.url); + ws.addEventListener("open", event => { + ws.send("ok"); + }); + ws.addEventListener("message", event => { + result = event.data; + }); + ws.addEventListener("close", event => { + result = event.code; + }); + }) + </script> + </head> + <body></body> +</html> |