5d41fb68b086853b727e488a6fbf12640e98a8f3.svn-base 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. <script type="text/javascript" src="../dojo.js"></script>
  17. <script type="text/javascript">
  18. obj = { // a long object to test scrolling in object inspector
  19. mobby:{d:"objectify", e:"erroroneous", f:"functastic", obby:{lilOb:"moOb"}},
  20. a:"Dojo",
  21. b:2,
  22. c:[0,8],
  23. id:"MyCoolObject",
  24. extra:{d:"objectify2", e:"erroroneous2", f:"functastic2", obby:{lilOb:"moOb2"}},
  25. aaa:"Dojo",
  26. bbb:22,
  27. ccc:[10,18],
  28. idDeedYee:"MyCoolObjectie"
  29. }
  30. obj2 = {
  31. a:"Dojo",
  32. b:2,
  33. c:[0,8],
  34. id:"MyCoolObject"
  35. }
  36. obj3 = {
  37. a:"Dojo",
  38. b:2,
  39. c:[0,8]
  40. }
  41. outputText = function(){
  42. for ( var i = 0; i < 20 ; i++){
  43. console.log (i+":: foo");
  44. }
  45. }
  46. doStuff = function(){
  47. console.log("FOO! More FOO! Gotta have some FOO MAN!")
  48. }
  49. doStuffLots = function(){
  50. for ( var i = 0; i < 5 ; i++){
  51. console.log("xxxxxxxx")
  52. doStuff();
  53. }}
  54. dojo.addOnLoad(function(){
  55. console.time("foo time")
  56. // test objects
  57. console.log(obj3, "::", [1,2,3,4,5,6,7,8,9,0]);
  58. console.log("Dojo was here", obj, "object over", obj2);
  59. // test that tracing dom node does not break (due to lack of support)
  60. console.log(dojo.byId("foo"))
  61. // test error functionality
  62. console.error( new Error("There was a dummy error") );
  63. //throws exception:
  64. //console.assert(true == false)
  65. console.group("myGroup");
  66. console.log("group me 1");
  67. console.log("group me 2");
  68. console.log("group me 3");
  69. console.groupEnd();
  70. // testing log styling
  71. console.log("foo");
  72. console.debug("foo");
  73. console.info("foo");
  74. console.warn("foo");
  75. console.error("foo");
  76. //timer end
  77. console.timeEnd("foo time")
  78. })
  79. function doCon(){
  80. }
  81. </script>
  82. </head>
  83. <body>
  84. <div id="foo" font="Arial" style="display:none;">Dojo was here</div>
  85. <button onclick="doStuff()">Do Foo Stuff</button>
  86. <button onclick="doStuffLots()">Do Stuff Lots</button>
  87. <div id="trc"></div>
  88. </body>
  89. </html>