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

Unified Diff: LayoutTests/plugins/page-scale-does-not-affect-plugin-height.html

Issue 462243002: Make logical height calculations on RenderView use unscaled FrameRect (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed up test Created 6 years, 4 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 | « no previous file | LayoutTests/plugins/page-scale-does-not-affect-plugin-height-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/plugins/page-scale-does-not-affect-plugin-height.html
diff --git a/LayoutTests/plugins/page-scale-does-not-affect-plugin-height.html b/LayoutTests/plugins/page-scale-does-not-affect-plugin-height.html
new file mode 100644
index 0000000000000000000000000000000000000000..2bed464c2607bab4014721d0e151135c124a1826
--- /dev/null
+++ b/LayoutTests/plugins/page-scale-does-not-affect-plugin-height.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<script>
+ function runTest() {
+ if (window.testRunner)
+ testRunner.dumpAsText();
+
+ if (window.eventSender)
+ window.eventSender.setPageScaleFactor(1.5, 0, 0);
+
+ document.body.innerHTML =
+ "This test checks that page scale does not affect a plugin object's height when it depends on the window height."
+ + " The test scales the page and is considered to pass if the embed object occupies the full height of the window."
+ + "<br>"
+ + "<br>"
+ + "EXPECTED:<br>"
+ + "layer at (0,0) size 800x600 RenderEmbeddedObject {EMBED} at (0,0) size 800x600<br>"
+ + "ACTUAL:<br>"
+ + internals.elementRenderTreeAsText(document.getElementById('box'));
+ }
+</script>
+<style>
+html, body {
+ height: 100%;
+}
+</style>
+<body style="margin: 0px; overflow: hidden" onload="runTest()">
+ <embed id="box" width="100%" height="100%" name="plugin" src="fileDoesNotExist.pdf" type="application/pdf"></embed>
+</body>
« no previous file with comments | « no previous file | LayoutTests/plugins/page-scale-does-not-affect-plugin-height-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698