OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859
-1"> | 2 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859
-1"> |
3 <title>Canvas Demo</title> | 3 <title>Canvas Demo</title> |
4 </head> | 4 </head> |
5 <body> | 5 <body> |
6 <canvas id="canv" class="output" width="600" height="400" style="width:600px;hei
ght:400px;border:2px solid #c3c3c3;"> | 6 <canvas id="canv" class="output" width="600" height="400" style="width:600px;hei
ght:400px;border:2px solid #c3c3c3;"> |
7 <p><b>Browser doesn't support canvas</b></p> | 7 <p><b>Browser doesn't support canvas</b></p> |
8 </canvas> | 8 </canvas> |
9 <script> | 9 <script> |
10 var c = document.getElementById('canv'); | 10 var c = document.getElementById('canv'); |
11 var ctx = c.getContext('2d'); | 11 var ctx = c.getContext('2d'); |
12 ctx.fillStyle = "#000000"; | 12 ctx.fillStyle = "#000000"; |
13 ctx.fillRect(10, 10, 250, 250); | 13 ctx.fillRect(10, 10, 250, 250); |
14 domAutomationController.setAutomationId(0); | |
15 domAutomationController.send("FINISHED"); | 14 domAutomationController.send("FINISHED"); |
16 </script> | 15 </script> |
17 </body> | 16 </body> |
18 </html> | 17 </html> |
OLD | NEW |