diff options
Diffstat (limited to 'tests/qml/data/wrapper.html')
-rw-r--r-- | tests/qml/data/wrapper.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/qml/data/wrapper.html b/tests/qml/data/wrapper.html index 9c4386c..a556486 100644 --- a/tests/qml/data/wrapper.html +++ b/tests/qml/data/wrapper.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) { myFactory.create("testObj", function(obj) { window[obj.objectName()] = obj; obj.mySignal.connect(function(arg1, arg2) { |