| <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> |