Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(632)

Side by Side Diff: chrome/test/data/prerender/prerender_size.html

Issue 6685012: Give prerendering RVH's RenderWidgetHostViews. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Sync to trunk Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | content/browser/tab_contents/render_view_host_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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>
OLDNEW
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | content/browser/tab_contents/render_view_host_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698