2018-09-05 08:21:22 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>DOMRect test</title>
|
2019-02-20 08:13:37 +01:00
|
|
|
<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">
|
2020-05-18 13:22:33 +02:00
|
|
|
<link href="domRectTest.css" type="text/css" rel="stylesheet">
|
2018-09-05 08:21:22 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>DOMRect test</h1>
|
2019-09-04 00:30:20 +02:00
|
|
|
<h2>Expected result</h2>
|
|
|
|
<ul>
|
2020-07-29 14:17:05 +02:00
|
|
|
<li>all the hashes and numbers should be equal for the getClientRects and getBoundingClientRect tests</li>
|
2019-09-04 00:30:20 +02:00
|
|
|
<li>if "refresh" is clicked the hash must not change</li>
|
2020-01-12 13:47:17 +01:00
|
|
|
<li>upon page reload the hashes change (depending on CanvasBlocker settings - e.g. not in the stealth preset)</li>
|
2019-09-04 00:30:20 +02:00
|
|
|
</ul>
|
|
|
|
<h2>Tests</h2>
|
2020-05-18 13:22:33 +02:00
|
|
|
<iframe id="iframe" src="domRectIFrame.php"></iframe>
|
2020-07-29 14:17:05 +02:00
|
|
|
<iframe id="svg" src="domRectSVG.svg"></iframe>
|
2020-05-18 13:22:33 +02:00
|
|
|
<div id="noIframe"><?php include("domRectElements.part.html");?></div>
|
2018-09-05 08:21:22 +02:00
|
|
|
<div id="tests">
|
|
|
|
<div class="test">
|
2019-09-04 00:30:20 +02:00
|
|
|
<h3 class="title"></h3>
|
2018-09-05 08:21:22 +02:00
|
|
|
Hash: <span class="hash"></span><br>
|
2020-07-29 14:14:13 +02:00
|
|
|
<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>
|
2019-05-04 12:37:19 +02:00
|
|
|
<button class="refresh">refresh</button>
|
|
|
|
<button class="performance">measure performance</button>
|
2018-09-05 08:21:22 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script src="domRectTest.js"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|