1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-11-09 22:58:52 +01:00
CanvasBlocker/test/svgTest.html

36 lines
1.2 KiB
HTML
Raw Normal View History

2022-01-30 10:05:52 +01:00
<!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>
2022-02-13 14:54:48 +01:00
<div id="test">
2022-01-30 10:05:52 +01:00
<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">&plus;</span><span class="content">&minus;</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>