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

Side by Side Diff: LayoutTests/fast/images/viewport-in-standalone-image-document.html

Issue 18034007: Add viewport settings for ImageDocument and MediaDocument (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: LayoutTests Created 7 years, 5 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
« no previous file with comments | « no previous file | LayoutTests/fast/images/viewport-in-standalone-image-document-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 if (window.testRunner) {
6 testRunner.dumpAsText();
7 }
8
9 function frameLoaded()
10 {
11 var standaloneImageDocument = document.querySelector("iframe").c ontentDocument;
12 var metaElement = standaloneImageDocument.querySelector("meta");
13
14 if (metaElement && metaElement.name == "viewport" &&
15 metaElement.content == "width=device-width") {
16 document.getElementById("log").textContent = "PASS";
17 }
18 }
19 </script>
20 </head>
21 <body>
22 <p>
23 This tests that a standalone image document has viewport settings.
24 </p>
25 <iframe src="resources/lenna.jpg" onload="frameLoaded()"></iframe>
26 <p id="log">FAIL</p>
27 </body>
28 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/images/viewport-in-standalone-image-document-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698