Эх сурвалжийг харах

Add back canvas.html test page to tests subdir.

Joel Martin 15 жил өмнө
parent
commit
b92e282ad7
1 өөрчлөгдсөн 28 нэмэгдсэн , 0 устгасан
  1. 28 0
      tests/canvas.html

+ 28 - 0
tests/canvas.html

@@ -0,0 +1,28 @@
+<html>
+    <head><title>Canvas Experiments</title></head>
+    <body>
+        Canvas:<br>
+        <canvas id="tutorial" width="640" height="480"
+                style="border-style: dotted; border-width: 1px;">
+            Canvas not supported.
+        </canvas>
+    </body>
+
+    <!--
+    <script type='text/javascript' 
+        src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js'></script>
+    -->
+
+    <script src="../include/mootools.js"></script>
+    <script src="../include/util.js"></script>
+    <script src="../include/canvas.js"></script>
+
+    <script>
+        window.onload = function() {
+            console.log("here1");
+            Canvas.init('tutorial', 640, 480);
+            Canvas.draw();
+            console.log("here2");
+        }
+    </script>
+</html>