1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-22 04:40:20 +01:00
CanvasBlocker/test/screenSizeTest.html
2022-04-04 18:10:16 +02:00

30 lines
1.2 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>Screen size 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="./screenSizeTest.css" type="text/css">
<style type="text/css"></style>
</head>
<body>
<iframe id="iframe"></iframe>
<h1>Screen size test</h1>
<h2>Expected result</h2>
<ul>
<li>all consistency checks return "OK" (except the "reported value" check which might fail for min OR max upon zoom)</li>
<li>all the dimensions are the same (except when "fake minimal screen size" is enabled - then the "css" test shows the original value as this cannot be faked)</li>
<li>values do not change upon reload</li>
<li>upon zoom the values change</li>
<li>if "fake minimal screen size" is enabled resizing the window can change the value</li>
</ul>
<h2>Consistency tests</h2>
<div id="consistency"></div>
<h2>Resolution tests</h2>
<div id="resolution"></div>
<script type="text/javascript" src="screenSizeTest.js"></script>
</body>
</html>