blob: 0f7dc1424628a0844bd86dfcf1e3fd0b5778141d [file] [log] [blame]
<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>