| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../js/resources/js-test-pre.js"></script> | 4 <script src="../js/resources/js-test-pre.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <canvas id="canvas" width="100" height="100"></canvas> | 7 <canvas id="canvas" width="100" height="100"></canvas> |
| 8 <script> | 8 <script> |
| 9 description("Bug 55696: Series of tests to ensure zero-length arc extends curren
t subpath"); | 9 description("Bug 55696: Series of tests to ensure zero-length arc extends curren
t subpath"); |
| 10 var ctx = document.getElementById('canvas').getContext('2d'); | 10 var ctx = document.getElementById('canvas').getContext('2d'); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 ctx.stroke(); | 42 ctx.stroke(); |
| 43 shouldBeBlackPixel(50, 60); | 43 shouldBeBlackPixel(50, 60); |
| 44 | 44 |
| 45 // empty arc (radius == 0) + lineTo | 45 // empty arc (radius == 0) + lineTo |
| 46 ctx.beginPath(); | 46 ctx.beginPath(); |
| 47 ctx.arc(20, 80, 0, 0, 6, false); | 47 ctx.arc(20, 80, 0, 0, 6, false); |
| 48 ctx.lineTo(80, 80); | 48 ctx.lineTo(80, 80); |
| 49 ctx.stroke(); | 49 ctx.stroke(); |
| 50 shouldBeBlackPixel(50, 80); | 50 shouldBeBlackPixel(50, 80); |
| 51 </script> | 51 </script> |
| 52 <script src="../js/resources/js-test-post.js"></script> | |
| 53 </body> | 52 </body> |
| 54 </html> | 53 </html> |
| OLD | NEW |