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

Unified Diff: LayoutTests/picture/working/picture-only-one-resource-preloaded.html

Issue 14449003: Picture element initial implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@picture_after_rebase
Patch Set: Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/picture/working/picture-only-one-resource-preloaded.html
diff --git a/LayoutTests/picture/working/picture-only-one-resource-preloaded.html b/LayoutTests/picture/working/picture-only-one-resource-preloaded.html
new file mode 100644
index 0000000000000000000000000000000000000000..45e5ea6c0850d72d89fdc624f0bb5b731cdbb96c
--- /dev/null
+++ b/LayoutTests/picture/working/picture-only-one-resource-preloaded.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <title>Picture test</title>
+ <script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+ </script>
+ <script src="http://127.0.0.1:8000/resources/slow-script.pl?delay=1000"></script>
+ </head>
+
+ <body>
+ <script>
+ var shouldBeTrue = internals.isPreloaded("../resources/cake.png");
+ var shouldBeFalse = internals.isPreloaded("../resources/red.png");
+ var result = "FAIL";
+ if (shouldBeTrue && !shouldBeFalse)
+ result = "SUCCESS";
+ document.getElementsByTagName("body")[0].appendChild(document.createTextNode(result))
+ </script>
+ <p> You got cake? </p>
+ <picture alt="cake">
+ <source src="../resources/cake.png" media="screen and (min-width: 800px)" />
+ <source src="../resources/red.png" media="screen and (max-width:799px)" />
+ </picture>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698