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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/prerender/prerender_size.html
===================================================================
--- chrome/test/data/prerender/prerender_size.html (revision 0)
+++ chrome/test/data/prerender/prerender_size.html (revision 0)
@@ -0,0 +1,25 @@
+<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>
Property changes on: chrome\test\data\prerender\prerender_size.html
___________________________________________________________________
Added: svn:eol-style
+ LF
« 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