| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head></head> | 3 <head></head> |
| 4 <body> | 4 <body> |
| 5 <canvas id="mycanvas" width="400" height="400"></canvas> | 5 <canvas id="mycanvas" width="400" height="400"></canvas> |
| 6 <script src="../js/resources/js-test-pre.js"></script> | 6 <script src="../../resources/js-test.js"></script> |
| 7 <script> | 7 <script> |
| 8 description("This tests checks that ellipse can draw lines correctly in edge cas
es."); | 8 description("This tests checks that ellipse can draw lines correctly in edge cas
es."); |
| 9 var canvas = document.getElementById('mycanvas'); | 9 var canvas = document.getElementById('mycanvas'); |
| 10 var ctx = canvas.getContext('2d'); | 10 var ctx = canvas.getContext('2d'); |
| 11 | 11 |
| 12 var zero = 0; | 12 var zero = 0; |
| 13 ctx.lineWidth = 5; | 13 ctx.lineWidth = 5; |
| 14 ctx.fillStyle = 'rgb(255, 255, 255)'; | 14 ctx.fillStyle = 'rgb(255, 255, 255)'; |
| 15 ctx.strokeStyle = 'rgb(0, 0, 0)'; | 15 ctx.strokeStyle = 'rgb(0, 0, 0)'; |
| 16 ctx.fillRect(0, 0, canvas.width, canvas.height); | 16 ctx.fillRect(0, 0, canvas.width, canvas.height); |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 imageData = ctx.getImageData(235, 160, 1, 1); | 304 imageData = ctx.getImageData(235, 160, 1, 1); |
| 305 shouldBe("imageData.data[1]", "0"); | 305 shouldBe("imageData.data[1]", "0"); |
| 306 imageData = ctx.getImageData(210, 150, 1, 1); | 306 imageData = ctx.getImageData(210, 150, 1, 1); |
| 307 shouldBe("imageData.data[1]", "0"); | 307 shouldBe("imageData.data[1]", "0"); |
| 308 imageData = ctx.getImageData(252, 156, 1, 1); | 308 imageData = ctx.getImageData(252, 156, 1, 1); |
| 309 shouldBe("imageData.data[1]", "0"); | 309 shouldBe("imageData.data[1]", "0"); |
| 310 | 310 |
| 311 </script> | 311 </script> |
| 312 </body> | 312 </body> |
| 313 </html> | 313 </html> |
| OLD | NEW |