Series of tests to ensure correct behavior of canvas.clearRect(). On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". Test canvas.clearRect() with height = width = 0. FAIL imgdata[0] should be 255. Was 0. PASS imgdata[1] is 0 FAIL imgdata[2] should be 0. Was 255. Test canvas.clearRect() with height = 0, width = 1. FAIL imgdata[0] should be 255. Was 0. PASS imgdata[1] is 0 FAIL imgdata[2] should be 0. Was 255. Test canvas.clearRect() with height = 1, width = 0. FAIL imgdata[0] should be 255. Was 0. PASS imgdata[1] is 0 FAIL imgdata[2] should be 0. Was 255. PASS successfullyParsed is true TEST COMPLETE