[483] | 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 | }; |
---|
| 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 | <div id="foo" font="Arial" style="display:none;">Dojo was here</div> |
---|
| 97 | <button onclick="doStuff()">Do Foo Stuff</button> |
---|
| 98 | <button onclick="doStuffLots()">Do Stuff Lots</button> |
---|
| 99 | <div id="trc"></div> |
---|
| 100 | </body> |
---|
| 101 | </html> |
---|