blob: fb0509ad8fe7a849edfba3f51acfb25cb1e82abb [file] [log] [blame]
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<body>
<script>
test(function(t) {
ctx = document.createElement('canvas').getContext('2d');
assert_throws(null, function() {ctx.getImageData(10, 10, 0, 10)});
assert_throws(null, function() {ctx.getImageData(10, 10, 10, 0)});
}, "Test the handling of invalid arguments in canvas getImageData().");
</script>
</body>