r20445: add README file indicating that the swat directory is no longer relevant
[samba.git] / swat / apps / qooxdoo-examples / test / Leak_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>Leak-Test</p>
16   </div>
17
18   <script type="text/javascript">
19   qx.core.Init.getInstance().defineMain(function()
20   {
21     // Does not leak
22     // *****
23
24     // var i1 = new qx.io.image.ImagePreloader(qx.manager.object.ImageManager.buildUri("icon/48/hardwareinfo.png"));
25
26
27     // Leaks: +2MB
28     // *****
29
30     var w1 = new qx.ui.basic.Terminator;
31     qx.ui.core.ClientDocument.getInstance().add(w1);
32
33
34
35
36
37     // Does not leak
38     // *****
39     /*
40     var w1 = new qx.ui.basic.Terminator;
41     w1.setTop(48);
42     w1.setLeft(20);
43     qx.ui.core.ClientDocument.getInstance().add(w1);
44     */
45
46
47     // Leaks +2MB
48     // *****
49     /*
50     var i1 = new qx.ui.basic.Image("icon/48/hardwareinfo.png");
51     with(i1)
52     {
53       setTop(48);
54       setLeft(20);
55     };
56
57     qx.ui.core.ClientDocument.getInstance().add(i1);
58     */
59
60
61
62
63
64
65     //var t1 = new QxTarget;
66
67
68   });
69   </script>
70 </body>
71 </html>