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

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: 'queued' renamed to 'pending' 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
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

Powered by Google App Engine
This is Rietveld 408576698