Subversion Repositories Applications.papyrus

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2150 mathias 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:false
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
		dojo.addOnLoad(function(){
60
			console.time("foo time")
61
			// test objects
62
			console.log(obj3, "::", [1,2,3,4,5,6,7,8,9,0]);
63
			console.log("Dojo was here", obj, "object over", obj2);
64
 
65
			// test that tracing dom node does not break (due to lack of support)
66
			console.log(dojo.byId("foo"))
67
 
68
			// test error functionality
69
			console.error( new Error("There was a dummy error") );
70
 
71
			//throws exception:
72
			//console.assert(true == false)
73
 
74
			console.group("myGroup");
75
			console.log("group me 1");
76
			console.log("group me 2");
77
			console.log("group me 3");
78
			console.groupEnd();
79
 
80
			// testing log styling
81
			console.log("foo");
82
			console.debug("foo");
83
			console.info("foo");
84
			console.warn("foo");
85
			console.error("foo");
86
			//timer end
87
			console.timeEnd("foo time")
88
		})
89
 
90
		function doCon(){
91
		}
92
	</script>
93
</head>
94
<body>
95
	<div id="foo" font="Arial" style="display:none;">Dojo was here</div>
96
		<button onclick="doStuff()">Do Foo Stuff</button>
97
		<button onclick="doStuffLots()">Do Stuff Lots</button>
98
		<div id="trc"></div>
99
	</body>
100
</html>