summaryrefslogtreecommitdiff
path: root/tests/qml/data/send.html
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qml/data/send.html')
-rw-r--r--tests/qml/data/send.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/qml/data/send.html b/tests/qml/data/send.html
index 7d601a8..c60fbf4 100644
--- a/tests/qml/data/send.html
+++ b/tests/qml/data/send.html
@@ -1,14 +1,14 @@
<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
- var baseUrl = (/[?&]webChannelBaseUrl=([A-Za-z0-9\-:/\.]+)/.exec(location.search)[1]);
- new QWebChannel(baseUrl, function(channel) {
+ createWebChannel(function(channel) {
channel.subscribe("myMessage", function(payload) {
channel.send("myMessagePong:" + payload);
});
- }, true);
+ }, true /* raw */);
//END SETUP
</script>
</head>