summaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qmltests/data/webchannel-test.html
blob: d8c3b1305e12b193985dcae72af9a0566bba32e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <script type="text/javascript">
            //BEGIN SETUP
            var channel = new QWebChannel(qt.webChannelTransport, function(channel) {
                window.testObject = channel.objects.testObject;
                testObject.runTest.connect(function(foo) {
                    testObject.foo = foo;
                    testObject.bar(foo);
                });
                testObject.clientInitialized(testObject.foo);
            });
            //END SETUP
        </script>
    </head>
    <body>
    </body>
</html>