1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-23 05:10:27 +01:00
CanvasBlocker/test/navigatorTest.php

34 lines
1.2 KiB
PHP
Raw Normal View History

2019-02-27 23:49:00 +01:00
<!DOCTYPE html>
<html>
<head>
<title>Navigator 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">
2019-12-21 23:47:07 +01:00
<style>
.marked {
background-color: red;
}
</style>
2019-02-27 23:49:00 +01:00
</head>
<body>
<h1>Navigator test</h1>
2019-09-04 00:30:20 +02:00
Tests the navigator properties. In the default settings of CanvasBlocker the navigator properties are not altered. You have to enable the navigator protection and then open the navigator settings to chose the desired values.
<h2>Expected result</h2>
<ul>
<li>the server and client user agent match</li>
<li>the navigator properties are according to what was set in the CanvasBlocker settings</li>
2019-12-21 23:47:07 +01:00
<li>no line is red or has multiple values (separated by a "|")</li>
2019-09-04 00:30:20 +02:00
</ul>
<h2>Tests</h2>
2019-02-27 23:49:00 +01:00
<div id="log">
<div class="log">
<div class="logLine">
server site user agent: <?php echo htmlentities($_SERVER["HTTP_USER_AGENT"], ENT_QUOTES, "UTF-8");?>
</div>
</div>
</div>
2019-11-30 02:05:37 +01:00
<script id="serverUserAgent" type="text/data"><?php echo htmlentities($_SERVER["HTTP_USER_AGENT"], ENT_QUOTES, "UTF-8");?></script>
2019-12-24 00:54:17 +01:00
<script src="iframeAPI.js"></script>
2019-02-27 23:49:00 +01:00
<script src="navigatorTest.js"></script>
</body></html>