<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>