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

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

Issue 2496663002: Merge css3/image/ and fast/images/ to images/ (Closed)
Patch Set: Address failing tests (3 of them) Created 4 years, 1 month 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 <html> 2 <html>
3 <head> 3 <head>
4 <script> 4 <script>
5 if (window.testRunner) { 5 if (window.testRunner) {
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 } 7 }
8 8
9 function frameLoaded() 9 function frameLoaded()
10 { 10 {
11 var standaloneImageDocument = document.querySelector("iframe").c ontentDocument; 11 var standaloneImageDocument = document.querySelector("iframe").c ontentDocument;
12 var metaElement = standaloneImageDocument.querySelector("meta"); 12 var metaElement = standaloneImageDocument.querySelector("meta");
13 13
14 if (metaElement && metaElement.name == "viewport" && 14 if (metaElement && metaElement.name == "viewport" &&
15 metaElement.content == "width=device-width, minimum-scale=0. 1") { 15 metaElement.content == "width=device-width, minimum-scale=0. 1") {
16 document.getElementById("log").textContent = "PASS"; 16 document.getElementById("log").textContent = "PASS";
17 } 17 }
18 } 18 }
19 </script> 19 </script>
20 </head> 20 </head>
21 <body> 21 <body>
22 <p> 22 <p>
23 This tests that a standalone image document has viewport settings. 23 This tests that a standalone image document has viewport settings.
24 </p> 24 </p>
25 <iframe src="resources/lenna.jpg" onload="frameLoaded()"></iframe> 25 <iframe src="resources/lenna.jpg" onload="frameLoaded()"></iframe>
26 <p id="log">FAIL</p> 26 <p id="log">FAIL</p>
27 </body> 27 </body>
28 </html> 28 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698