| <script src="../../resources/testharness.js"></script> |
| <script src="../../resources/testharnessreport.js"></script> |
| <body> |
| <script> |
| var ctx = document.createElement('canvas').getContext('2d'); |
| |
| test(function(t) { |
| assert_throws(new TypeError(), function() { |
| ctx.fillText(); |
| }); |
| assert_throws(new TypeError(), function() { |
| ctx.fillText('moo'); |
| }); |
| assert_throws(new TypeError(), function() { |
| ctx.fillText('moo', 0); |
| }); |
| assert_equals(ctx.fillText('moo',0,0), undefined); |
| assert_equals(ctx.fillText('moo',0,0,0), undefined); |
| assert_equals(ctx.fillText('moo',0,0,0,0), undefined); |
| }, "Test the behavior of CanvasRenderingContext2D.fillText() when called with different numbers of arguments."); |
| </script> |
| </body> |