blob: 025bb03fc5ebd8a9256842a4d820d2607c3548b1 [file] [log] [blame]
<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>