1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-22 12:50:36 +01:00

Added more information for error provoking detection tests.

This commit is contained in:
kkapsner 2017-07-28 17:37:31 +02:00
parent 74a6b16090
commit 26457b2a7f

View File

@ -88,6 +88,7 @@ addTest("error provocation 1", function(log){
catch (err){
try {
log(err.name);
log(err.toString());
}
catch (e){
canvasBlocker = true;
@ -102,10 +103,12 @@ addTest("error provocation 2", function(log){
var canvasBlocker = false;
try{
ctx.getImageData(0, 0, 1, 1);
log("no error provoked");
}
catch (err){
try {
log(err.name);
log(err.toString());
}
catch (e){
canvasBlocker = true;
@ -121,6 +124,7 @@ addTest("error provocation 3", function(log){
catch (err){
try {
log(err.name);
log(err.toString());
}
catch (e){
canvasBlocker = true;