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> |