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 105650: Test correct rendering of quadratic and bezier curves w
ith coincident endpoints"); | 9 description("Bug 105650: Test correct rendering of quadratic and bezier curves w
ith coincident endpoints"); |
10 var ctx = document.getElementById('canvas').getContext('2d'); | 10 var ctx = document.getElementById('canvas').getContext('2d'); |
(...skipping 22 matching lines...) Expand all Loading... |
33 ctx.moveTo(20,20); | 33 ctx.moveTo(20,20); |
34 | 34 |
35 //Next line should be close to ctx.bezierCurveTo(81,80,80,80,20,20); | 35 //Next line should be close to ctx.bezierCurveTo(81,80,80,80,20,20); |
36 ctx.quadraticCurveTo(110,110,20,20); | 36 ctx.quadraticCurveTo(110,110,20,20); |
37 | 37 |
38 shouldBeBlue(70,70); | 38 shouldBeBlue(70,70); |
39 ctx.stroke(); | 39 ctx.stroke(); |
40 shouldBeYellow(70,70); | 40 shouldBeYellow(70,70); |
41 | 41 |
42 </script> | 42 </script> |
43 <script src="../js/resources/js-test-post.js"></script> | |
44 </body> | 43 </body> |
45 </html> | 44 </html> |
OLD | NEW |