mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-01-03 10:31:54 +01:00
Added test for settings loading timing
This commit is contained in:
parent
3e214ed967
commit
bd48d1f39a
@ -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
19
test/settingsLoading.php
Normal 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>
|
Loading…
x
Reference in New Issue
Block a user