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

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

Issue 930183002: Move and rename RenderEmbeddedObject and RenderIFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rename properly to LayoutIFrame in test expectations. Created 5 years, 10 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script> 2 <script>
3 function runTest() { 3 function runTest() {
4 if (window.testRunner) 4 if (window.testRunner)
5 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
6 6
7 if (window.eventSender) 7 if (window.eventSender)
8 window.eventSender.setPageScaleFactor(1.5, 0, 0); 8 window.eventSender.setPageScaleFactor(1.5, 0, 0);
9 9
10 document.body.innerHTML = 10 document.body.innerHTML =
11 "This test checks that page scale does not affect a plugin object's height when it depends on the window height." 11 "This test checks that page scale does not affect a plugin object's height when it depends on the window height."
12 + " The test scales the page and is considered to pass if the embed object occupies the full height of the window." 12 + " The test scales the page and is considered to pass if the embed object occupies the full height of the window."
13 + "<br>" 13 + "<br>"
14 + "<br>" 14 + "<br>"
15 + "EXPECTED:<br>" 15 + "EXPECTED:<br>"
16 + "layer at (0,0) size 800x600 RenderEmbeddedObject {EMBED} at (0,0) size 800x600<br>" 16 + "layer at (0,0) size 800x600 LayoutEmbeddedObject {EMBED} at (0,0) size 800x600<br>"
17 + "ACTUAL:<br>" 17 + "ACTUAL:<br>"
18 + internals.elementLayoutTreeAsText(document.getElementById('box')); 18 + internals.elementLayoutTreeAsText(document.getElementById('box'));
19 } 19 }
20 </script> 20 </script>
21 <style> 21 <style>
22 html, body { 22 html, body {
23 height: 100%; 23 height: 100%;
24 } 24 }
25 </style> 25 </style>
26 <body style="margin: 0px; overflow: hidden" onload="runTest()"> 26 <body style="margin: 0px; overflow: hidden" onload="runTest()">
27 <embed id="box" width="100%" height="100%" name="plugin" src="fileDoesNotExist .pdf" type="application/pdf"></embed> 27 <embed id="box" width="100%" height="100%" name="plugin" src="fileDoesNotExist .pdf" type="application/pdf"></embed>
28 </body> 28 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698