Index: LayoutTests/fast/images/viewport-in-standalone-image-document.html |
diff --git a/LayoutTests/fast/images/viewport-in-standalone-image-document.html b/LayoutTests/fast/images/viewport-in-standalone-image-document.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..838eea5575f7bdef2c89ec2abae8a051b9eb57cd |
--- /dev/null |
+++ b/LayoutTests/fast/images/viewport-in-standalone-image-document.html |
@@ -0,0 +1,28 @@ |
+<!DOCTYPE html> |
+<html> |
+ <head> |
+ <script> |
+ if (window.testRunner) { |
+ testRunner.dumpAsText(); |
+ } |
+ |
+ function frameLoaded() |
+ { |
+ var standaloneImageDocument = document.querySelector("iframe").contentDocument; |
+ var metaElement = standaloneImageDocument.querySelector("meta"); |
+ |
+ if (metaElement && metaElement.name == "viewport" && |
+ metaElement.content == "width=device-width") { |
+ document.getElementById("log").textContent = "PASS"; |
+ } |
+ } |
+ </script> |
+ </head> |
+ <body> |
+ <p> |
+ This tests that a standalone image document has viewport settings. |
+ </p> |
+ <iframe src="resources/lenna.jpg" onload="frameLoaded()"></iframe> |
+ <p id="log">FAIL</p> |
+ </body> |
+</html> |