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:
parent
c53961e1d4
commit
158a53564d
@ -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");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user