r20445: add README file indicating that the swat directory is no longer relevant
[samba.git] / swat / apps / qooxdoo-examples / performance / Qooxdoo_1.html
1 <html>
2 <head>
3   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4   <title>qooxdoo &raquo; Demo</title>
5   <link type="text/css" rel="stylesheet" href="../../resource/css/layout.css"/>
6   <!--[if IE]>
7   <link type="text/css" rel="stylesheet" href="../../resource/css/layout_ie.css"/>
8   <![endif]-->
9   <script type="text/javascript" src="../../script/qx.js"></script>
10 </head>
11 <body>
12   <script type="text/javascript" src="../../script/layout.js"></script>
13
14   <div id="demoDescription">
15     <p>Tests for qooxdoo object performance</p>
16     <ol>
17       <li>qx.core.Object</li>
18       <li>qx.core.Target</li>
19       <li>qx.event.type.Event</li>
20       <li>qx.event.type.MouseEvent</li>
21       <li>qx.ui.basic.Terminator</li>
22       <li>qx.ui.layout.CanvasLayout</li>
23       <li>qx.ui.layout.BoxLayout</li>
24     </ol>
25   </div>
26
27   <script type="text/javascript">
28   qx.core.Init.getInstance().defineMain(function()
29   {
30     function TestObject(vLoops)
31     {
32       for (var i=0; i<vLoops; i++) {
33         new qx.core.Object;
34       };
35     };
36
37     function TestTarget(vLoops)
38     {
39       for (var i=0; i<vLoops; i++) {
40         new qx.core.Target;
41       };
42     };
43
44     function TestEvent(vLoops)
45     {
46       for (var i=0; i<vLoops; i++) {
47         new qx.event.type.Event;
48       };
49     };
50
51     function TestMouseEvent(vLoops)
52     {
53       for (var i=0; i<vLoops; i++) {
54         new qx.event.type.MouseEvent;
55       };
56     };
57
58     function TestTerminator(vLoops)
59     {
60       for (var i=0; i<vLoops; i++) {
61         new qx.ui.basic.Terminator;
62       };
63     };
64
65     function TestCanvasLayout(vLoops)
66     {
67       for (var i=0; i<vLoops; i++) {
68         new qx.ui.layout.CanvasLayout;
69       };
70     };
71
72     function TestBoxLayout(vLoops)
73     {
74       for (var i=0; i<vLoops; i++) {
75         new qx.ui.layout.BoxLayout;
76       };
77     };
78
79     new qx.dev.TimeTracker(TestObject, TestTarget, TestEvent, TestMouseEvent, TestTerminator, TestCanvasLayout, TestBoxLayout);
80   });
81   </script>
82 </body>
83 </html>