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="../../resources/js-test.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'); |
11 var data; | 11 var data; |
12 | 12 |
13 function shouldBeYellow(x,y) | 13 function shouldBeYellow(x,y) |
14 { | 14 { |
(...skipping 20 matching lines...) Expand all Loading... |
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 </body> | 43 </body> |
44 </html> | 44 </html> |
OLD | NEW |