5 if (window.layoutTestController)
6 layoutTestController.dumpAsText();
8 function newCanvasContext() {
9 canvas = document.createElement("canvas");
12 return canvas.getContext("2d");
15 window.onload = function () {
16 ctx = newCanvasContext();
17 ctx.fillStyle = '#0f0';
18 ctx.fillRect(0, 0, 100, 50);
19 ctx.moveTo(10500000000, 10500000000);
23 ctx.getImageData(50, 25, 1, 1);
25 ctx = newCanvasContext();
26 ctx.fillStyle = '#0f0';
27 ctx.scale(4500000000, 4500000000);
31 ctx.getImageData(50, 25, 1, 1);
33 ctx = newCanvasContext();
34 ctx.fillStyle = '#0f0';
35 ctx.fillRect(0, 0, 100, 50);
36 ctx.scale(2, -4500000000);
37 ctx.arc(25, 50, 56, 0, 2*Math.PI, false);
39 ctx.arc(105000000005, -105000000005, 105000000004, 0, 10500000000*Math.PI, false);
41 ctx.getImageData(50, 25, 1, 1);
44 PASS: Draw commands with big numbers cause no problems.