| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <script src="../../resources/testharness.js"></script> |
| 2 <html> | 2 <script src="../../resources/testharnessreport.js"></script> |
| 3 <head> | |
| 4 <script src="../../resources/js-test.js"></script> | |
| 5 </head> | |
| 6 <body> | 3 <body> |
| 7 <canvas id="canvas" width="200" height="200"></canvas> | 4 <canvas id="canvas" width="200" height="200"></canvas> |
| 8 <script src="script-tests/canvas-path-object.js"></script> | 5 <script> |
| 6 test(function(t) { |
| 7 assert_equals(typeof document.getElementById, 'function'); |
| 8 |
| 9 var path = new Path2D(); |
| 10 assert_true(path instanceof Path2D); |
| 11 assert_equals(typeof path.closePath, 'function'); |
| 12 assert_equals(typeof path.moveTo, 'function'); |
| 13 assert_equals(typeof path.lineTo, 'function'); |
| 14 assert_equals(typeof path.quadraticCurveTo, 'function'); |
| 15 assert_equals(typeof path.bezierCurveTo, 'function'); |
| 16 assert_equals(typeof path.arcTo, 'function'); |
| 17 assert_equals(typeof path.arc, 'function'); |
| 18 assert_equals(typeof path.rect, 'function'); |
| 19 assert_equals(typeof path.ellipse, 'function'); |
| 20 }, "Ensure that the constructor for Path object and dependent functions exist.")
; |
| 21 </script> |
| 9 </body> | 22 </body> |
| 10 </html> | |
| OLD | NEW |