diff options
Diffstat (limited to 'tests/qml/data/respond.html')
-rw-r--r-- | tests/qml/data/respond.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/qml/data/respond.html b/tests/qml/data/respond.html index 6c8db0d..5f0e7fc 100644 --- a/tests/qml/data/respond.html +++ b/tests/qml/data/respond.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.exec("foobar", function(response) { channel.send("received:"+response); }); - }, true); + }, true /* raw */); //END SETUP </script> </head> |