summaryrefslogtreecommitdiff
path: root/tests/qml/bench_init.html
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qml/bench_init.html')
-rw-r--r--tests/qml/bench_init.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/qml/bench_init.html b/tests/qml/bench_init.html
new file mode 100644
index 0000000..ef18650
--- /dev/null
+++ b/tests/qml/bench_init.html
@@ -0,0 +1,16 @@
+<html>
+ <head>
+ <script type="text/javascript" src="qrc:///qwebchannel/webchannel.js"></script>
+ <script type="text/javascript" src="qrc:///qwebchannel/qobject.js"></script>
+ <script type="text/javascript">
+ //BEGIN SETUP
+ var baseUrl = (/[?&]webChannelBaseUrl=([A-Za-z0-9\-:/\.]+)/.exec(location.search)[1]);
+ new QWebChannel(baseUrl, function(channel) {
+ setupQObjectWebChannel(channel, function() {});
+ });
+ //END SETUP
+ </script>
+ </head>
+ <body>
+ </body>
+</html>