]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Add back canvas.html test page to tests subdir.
authorJoel Martin <github@martintribe.org>
Mon, 17 May 2010 00:23:44 +0000 (19:23 -0500)
committerJoel Martin <github@martintribe.org>
Mon, 17 May 2010 00:23:44 +0000 (19:23 -0500)
tests/canvas.html [new file with mode: 0644]

diff --git a/tests/canvas.html b/tests/canvas.html
new file mode 100644 (file)
index 0000000..01581a4
--- /dev/null
@@ -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>