1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-06-18 09:49:35 +02:00

Added test for settings loading timing

This commit is contained in:
kkapsner 2017-12-12 21:56:22 +01:00
parent 3e214ed967
commit bd48d1f39a
2 changed files with 20 additions and 0 deletions

View File

@ -11,5 +11,6 @@
<li><a href="detectionTest.html">Detection test</a></li>
<li><a href="performanceTest.html">Performance test</a></li>
<li><a href="webGL-Test.html">Support for webGL</a></li>
<li><a href="settingsLoading.php">Settings loading</a></li>
</ul>
</body></html>

19
test/settingsLoading.php Normal file
View File

@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<script>
try {
var c = document.createElement("canvas").getContext("2d");
}
catch (e){
console.log(e);
var c = false;
}
</script>
</head>
<body>
<script>
document.body.textContent = c? "context API not blocked": "context API blocked";
</script>
</body></html>