1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-11-11 07:38:58 +01:00

Added description of how to use the detection test

Fixes #282
This commit is contained in:
kkapsner 2018-10-09 13:11:38 +02:00
parent 23279bad58
commit 9ae73d6a3e
2 changed files with 10 additions and 3 deletions

View File

@ -19,7 +19,14 @@
</head> </head>
<body> <body>
<h1>Detection test</h1> <h1>Detection test</h1>
Checks if the addon can be detected by websites. Checks if the addon can be detected by websites. To check if CanvasBlocker was really detected you should run this test with the following configurations (the difference between 2. and 3. tells the detection of CanvasBlocker):
<ol>
<li>all addons enabled</li>
<li>all addons disabled</li>
<li>CanvasBlocker enabled but all other addons disabled</li>
<li>CanvasBlocker disabled</li>
</ol>
<h2>Tests</h2>
<ul id="tests"></ul> <ul id="tests"></ul>
<script src="detectionTest.js"></script> <script src="detectionTest.js"></script>
</body> </body>

View File

@ -4,8 +4,8 @@ var addTest = (function(){
var statusDefinitions = [ var statusDefinitions = [
{className: "notRun", text: "not run"}, {className: "notRun", text: "not run"},
{className: "loud", text: "CB detected"}, {className: "loud", text: "API tampering detected"},
{className: "stealthy", text: "CB not detected"}, {className: "stealthy", text: "no API tampering detected"},
{className: "failed", text: "test failed"} {className: "failed", text: "test failed"}
]; ];
var ul = document.getElementById("tests"); var ul = document.getElementById("tests");