Replace done/fail with success/error parameters to let it be tested
Don't check particular error codes because IE always gets the same one (thanks jQuery)
Mock canvas receiving requests