source: Dev/branches/rest-dojo-ui/client/dojo/tests/test_FirebugLitePopup.html @ 263

Last change on this file since 263 was 256, checked in by hendrikvanantwerpen, 13 years ago

Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).

File size: 2.4 KB
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml">
4<head>
5        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
6        <title>Firebug Lite Tests</title>
7        <script type="text/javascript">
8                // enable Lite in Firefox:
9                console = null;
10                var djConfig = {
11                        isDebug: true,
12                        debugHeight: 100,
13                        popup:true // who knew?
14                };
15        </script>
16
17        <script type="text/javascript" src="../dojo.js"></script>
18        <script type="text/javascript">
19                obj = { // a long object to test scrolling in object inspector
20                        mobby:{d:"objectify", e:"erroroneous", f:"functastic", obby:{lilOb:"moOb"}},
21                        a:"Dojo",
22                        b:2,
23                        c:[0,8],
24                        id:"MyCoolObject",
25                        extra:{d:"objectify2", e:"erroroneous2", f:"functastic2", obby:{lilOb:"moOb2"}},
26                        aaa:"Dojo",
27                        bbb:22,
28                        ccc:[10,18],
29                        idDeedYee:"MyCoolObjectie"
30                };
31               
32                obj2 = {
33                        a:"Dojo",
34                        b:2,
35                        c:[0,8],
36                        id:"MyCoolObject"
37                };
38               
39                obj3 = {
40                        a:"Dojo",
41                        b:2,
42                        c:[0,8]
43                };
44               
45                outputText = function(){
46                        for(var i = 0; i < 20; i++){
47                                console.log(i + ":: foo");
48                        }
49                };
50                doStuff = function(){
51                        console.log("FOO! More FOO! Gotta have some FOO MAN!")
52                };
53               
54                doStuffLots = function(){
55                        for(var i = 0; i < 5; i++){
56                                console.log("xxxxxxxx")
57                                doStuff();
58                        }
59                };
60                dojo.addOnLoad(function(){
61                        console.time("foo time")
62                        // test objects
63                        console.log(obj3, "::", [1,2,3,4,5,6,7,8,9,0]);
64                        console.log("Dojo was here", obj, "object over", obj2);
65
66                        // test that tracing dom node does not break (due to lack of support)
67                        console.log(dojo.byId("foo"))
68
69                        // test error functionality
70                        console.error(new Error("There was a dummy error"));
71
72                        //throws exception:
73                        //console.assert(true == false)
74
75                        console.group("myGroup");
76                        console.log("group me 1");
77                        console.log("group me 2");
78                        console.log("group me 3");
79                        console.groupEnd();
80
81                        // testing log styling
82                        console.log("foo");
83                        console.debug("foo");
84                        console.info("foo");
85                        console.warn("foo");
86                        console.error("foo");
87                        //timer end
88                        console.timeEnd("foo time")
89                });
90               
91                function doCon(){
92                }
93        </script>
94</head>
95<body>
96        <h1>test Firebug popup window</h1>
97        <div id="foo" font="Arial" style="display:none;">Dojo was here</div>
98                <button onclick="doStuff()">Do Foo Stuff</button>
99                <button onclick="doStuffLots()">Do Stuff Lots</button>
100                <div id="trc"></div>
101        </body>
102</html>
Note: See TracBrowser for help on using the repository browser.