OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <title>Canvas test: 2d.path.arcTo.shape.curve2</title> | 2 <title>Canvas test: 2d.path.arcTo.shape.curve2</title> |
3 <script src="../tests.js"></script> | 3 <script src="../tests.js"></script> |
4 <link rel="stylesheet" href="../tests.css"> | 4 <link rel="stylesheet" href="../tests.css"> |
5 <body> | 5 <body> |
6 <p id="passtext">Pass</p> | 6 <p id="passtext">Pass</p> |
7 <p id="failtext">Fail</p> | 7 <p id="failtext">Fail</p> |
8 <p class="output">These images should be identical:</p> | 8 <p class="output">These images should be identical:</p> |
9 <canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (
fallback content)</p></canvas> | 9 <canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (
fallback content)</p></canvas> |
10 <p class="output expectedtext">Expected output:<p><img src="green-100x50.png" cl
ass="output expected" id="expected" alt=""> | 10 <p class="output expectedtext">Expected output:<p><img src="green-100x50.png" cl
ass="output expected" id="expected" alt=""> |
(...skipping 22 matching lines...) Expand all Loading... |
33 ctx.stroke(); | 33 ctx.stroke(); |
34 | 34 |
35 _assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); | 35 _assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); |
36 _assertPixel(canvas, 55,19, 0,255,0,255, "55,19", "0,255,0,255"); | 36 _assertPixel(canvas, 55,19, 0,255,0,255, "55,19", "0,255,0,255"); |
37 _assertPixel(canvas, 55,20, 0,255,0,255, "55,20", "0,255,0,255"); | 37 _assertPixel(canvas, 55,20, 0,255,0,255, "55,20", "0,255,0,255"); |
38 _assertPixel(canvas, 55,21, 0,255,0,255, "55,21", "0,255,0,255"); | 38 _assertPixel(canvas, 55,21, 0,255,0,255, "55,21", "0,255,0,255"); |
39 _assertPixel(canvas, 64,22, 0,255,0,255, "64,22", "0,255,0,255"); | 39 _assertPixel(canvas, 64,22, 0,255,0,255, "64,22", "0,255,0,255"); |
40 _assertPixel(canvas, 65,21, 0,255,0,255, "65,21", "0,255,0,255"); | 40 _assertPixel(canvas, 65,21, 0,255,0,255, "65,21", "0,255,0,255"); |
41 _assertPixel(canvas, 72,28, 0,255,0,255, "72,28", "0,255,0,255"); | 41 _assertPixel(canvas, 72,28, 0,255,0,255, "72,28", "0,255,0,255"); |
42 _assertPixel(canvas, 73,27, 0,255,0,255, "73,27", "0,255,0,255"); | 42 _assertPixel(canvas, 73,27, 0,255,0,255, "73,27", "0,255,0,255"); |
43 // See bug chromium:696216 | 43 _assertPixel(canvas, 78,36, 0,255,0,255, "78,36", "0,255,0,255"); |
44 _assertPixel(canvas, 78,36, 0,255,0,254, "78,36", "0,255,0,254 (but it should be
0, 255, 0, 255)"); | |
45 _assertPixel(canvas, 79,35, 0,255,0,255, "79,35", "0,255,0,255"); | 44 _assertPixel(canvas, 79,35, 0,255,0,255, "79,35", "0,255,0,255"); |
46 _assertPixel(canvas, 80,44, 0,255,0,255, "80,44", "0,255,0,255"); | 45 _assertPixel(canvas, 80,44, 0,255,0,255, "80,44", "0,255,0,255"); |
47 _assertPixel(canvas, 80,45, 0,255,0,255, "80,45", "0,255,0,255"); | 46 _assertPixel(canvas, 80,45, 0,255,0,255, "80,45", "0,255,0,255"); |
48 _assertPixel(canvas, 80,46, 0,255,0,255, "80,46", "0,255,0,255"); | 47 _assertPixel(canvas, 80,46, 0,255,0,255, "80,46", "0,255,0,255"); |
49 | 48 |
50 | 49 |
51 }); | 50 }); |
52 </script> | 51 </script> |
53 | 52 |
OLD | NEW |