blob: 025bb03fc5ebd8a9256842a4d820d2607c3548b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<html>
<!--
Checks that a prerendered page gets the correct window size.
-->
<head>
<title>Prerender Window Size Test</title>
<script>
var width = window.innerWidth;
var height = window.innerHeight;
// Make sure width and height are positive.
function DidPrerenderPass() {
return width > 0 && height > 0;
}
// Make sure width and height are the same as when prerendering.
function DidDisplayPass() {
return width == window.innerWidth && height == window.innerHeight;
}
</script>
</head>
<body></body>
</html>
|