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:
parent
74a6b16090
commit
26457b2a7f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user