mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-03 20:16:33 +02:00
parent
78183f9efc
commit
734e76180f
6 changed files with 283 additions and 0 deletions
36
test/svgTest.html
Normal file
36
test/svgTest.html
Normal file
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>TextMetrics test</title>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<link href="testIcon.svg" type="image/png" rel="icon">
|
||||
<link href="testIcon.svg" type="image/png" rel="shortcut icon">
|
||||
<link rel="stylesheet" href="../default.css" type="text/css">
|
||||
<link rel="stylesheet" href="./svgTest.css" type="text/css">
|
||||
<style>
|
||||
.hash {
|
||||
font-family: monospace;
|
||||
font-size: 70%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>SVG test</h1>
|
||||
<h2>Expected result</h2>
|
||||
<ol>
|
||||
<li>the hashes are different to the hashes when CanvasBlocker is disabled</li>
|
||||
<li>if "refresh" is clicked nothing must change</li>
|
||||
<li>upon page reload the hash changes (depending on CanvasBlocker settings - e.g. not in the stealth preset)</li>
|
||||
</ol>
|
||||
<h2>Tests</h2>
|
||||
<iframe id="svg" src="domRectSVG.svg"></iframe>
|
||||
<div id="test" id="svg">
|
||||
<h3 class="title">SVG</h3>
|
||||
Hash: <span class="hash"></span><br>
|
||||
<span class="content-hidable content-hidden">Data: <span class="toggle"><span class="anti-content">+</span><span class="content">−</span></span><span class="data content"></span></span><br>
|
||||
<button class="refresh">refresh</button>
|
||||
</div>
|
||||
<script src="testAPI.js"></script>
|
||||
<script src="svgTest.js"></script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue