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

Added name detection case.

This commit is contained in:
kkapsner 2017-06-29 07:35:37 +02:00
parent c53961e1d4
commit 158a53564d

View File

@ -61,6 +61,7 @@ var addTest = (function(){
}()); }());
addTest("function length", function(){return CanvasRenderingContext2D.prototype.getImageData.length === 0;}); addTest("function length", function(){return CanvasRenderingContext2D.prototype.getImageData.length === 0;});
addTest("function name", function(){return CanvasRenderingContext2D.prototype.getImageData.name !== "getImageData"});
addTest("error provocation 1", function(log){ addTest("error provocation 1", function(log){
var canvas = document.createElement('canvas'); var canvas = document.createElement('canvas');
var ctx = canvas.getContext("2d"); var ctx = canvas.getContext("2d");