1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17

content / test / data / gpu / functional_canvas_demo.html [blame]

<!DOCTYPE html>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Canvas Demo</title>
</head>
<body>
<canvas id="canv" class="output" width="600" height="400" style="width:600px;height:400px;border:2px solid #c3c3c3;">
 <p><b>Browser doesn't support canvas</b></p>
</canvas>
<script>
  var c = document.getElementById('canv');
  var ctx = c.getContext('2d');
  ctx.fillStyle = "#000000";
  ctx.fillRect(10, 10, 250, 250);
  domAutomationController.send("SUCCESS");
</script>
</body>
</html>