Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / chrome / test / data / prerender / prerender_size.html
blob025bb03fc5ebd8a9256842a4d820d2607c3548b1
1 <html>
2 <!--
3 Checks that a prerendered page gets the correct window size.
4 -->
5 <head>
6 <title>Prerender Window Size Test</title>
8 <script>
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;
21 </script>
23 </head>
24 <body></body>
25 </html>