- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / test / data / prerender / prerender_size.html
1 <html>
2 <!-- 
3 Checks that a prerendered page gets the correct window size.
4 -->
5 <head>
6 <title>Prerender Window Size Test</title>
7
8 <script>
9 var width = window.innerWidth;
10 var height = window.innerHeight;
11
12 // Make sure width and height are positive.
13 function DidPrerenderPass() {
14   return width > 0 && height > 0;
15 }
16
17 // Make sure width and height are the same as when prerendering.
18 function DidDisplayPass() {
19   return width == window.innerWidth && height == window.innerHeight;
20 }
21 </script>
22
23 </head>
24 <body></body>
25 </html>