3 Checks that a prerendered page gets the correct window size.
6 <title>Prerender Window Size Test</title>
9 var width = window.innerWidth;
10 var height = window.innerHeight;
12 // Make sure width and height are positive.
13 function DidPrerenderPass() {
14 return width > 0 && height > 0;
17 // Make sure width and height are the same as when prerendering.
18 function DidDisplayPass() {
19 return width == window.innerWidth && height == window.innerHeight;