summaryrefslogtreecommitdiff
path: root/Source/WebKit2/UIProcess/API/qt/tests/qmltests/common/webchannel.html
blob: 940821209760a4c3d8aa6551c89cda1e8d5084f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <script type="text/javascript" src="qrc:///qtwebchannel/qwebchannel.js"></script>
        <script type="text/javascript">
            //BEGIN SETUP
            var channel = new QWebChannel(navigator.qtWebChannelTransport, 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>