Upstream version 7.35.138.0
[platform/framework/web/crosswalk.git] / src / xwalk / application / test / data / testapi / main.html
1 <html>
2 <head>
3 <title></title>
4 <script>
5 var notifyFailTest = function(resolve) {
6   setTimeout(function() {
7     xwalk.app.test.notifyFail(function() {
8       resolve();
9     });
10   }, 100);
11 };
12
13 var notifyPassTest = function(resolve) {
14   setTimeout(function() {
15     xwalk.app.test.notifyPass(function() {
16       resolve();
17     });
18   }, 100);
19 };
20
21 var notifyTimeoutTest = function(resolve) {
22   setTimeout(function() {
23     xwalk.app.test.notifyTimeout(function() {
24       resolve();
25     });
26   }, 100);
27 };
28
29 var tests = [
30   notifyFailTest,
31   notifyPassTest,
32   notifyTimeoutTest,
33 ];
34
35 function onLoad() {
36   xwalk.app.test.runTests(tests);
37 }
38
39 </script>
40 </head>
41 <body onload = "onLoad()"/>
42 </html>