summaryrefslogtreecommitdiff
path: root/tests/qml/data/method.html
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qml/data/method.html')
-rw-r--r--tests/qml/data/method.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/qml/data/method.html b/tests/qml/data/method.html
index 04048a6..6dbaa90 100644
--- a/tests/qml/data/method.html
+++ b/tests/qml/data/method.html
@@ -1,10 +1,10 @@
<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("invokeMethod", function(arg) {
myObj.myMethod(arg);
});