summaryrefslogtreecommitdiff
path: root/tests/auto/qml/data/send.html
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/data/send.html')
-rw-r--r--tests/auto/qml/data/send.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/auto/qml/data/send.html b/tests/auto/qml/data/send.html
new file mode 100644
index 0000000..c60fbf4
--- /dev/null
+++ b/tests/auto/qml/data/send.html
@@ -0,0 +1,17 @@
+<html>
+ <head>
+ <script type="text/javascript" src="qrc:///qwebchannel/qwebchannel.js"></script>
+ <script type="text/javascript" src="testsetup.js"></script>
+ <script type="text/javascript">
+ //BEGIN SETUP
+ createWebChannel(function(channel) {
+ channel.subscribe("myMessage", function(payload) {
+ channel.send("myMessagePong:" + payload);
+ });
+ }, true /* raw */);
+ //END SETUP
+ </script>
+ </head>
+ <body>
+ </body>
+</html>