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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>Picture test</title>
6 <script>
7 if (window.testRunner)
8 testRunner.dumpAsText();
9 </script>
10 <script src="http://127.0.0.1:8000/resources/slow-script.pl?delay=1000"></sc ript>
11 </head>
12
13 <body>
14 <script>
15 var shouldBeTrue = internals.isPreloaded("../resources/cake.png");
16 var shouldBeFalse = internals.isPreloaded("../resources/red.png");
17 var result = "FAIL";
18 if (shouldBeTrue && !shouldBeFalse)
19 result = "SUCCESS";
20 document.getElementsByTagName("body")[0].appendChild(document.createText Node(result))
21 </script>
22 <p> You got cake? </p>
23 <picture alt="cake">
24 <source src="../resources/cake.png" media="screen and (m in-width: 800px)" />
25 <source src="../resources/red.png" media="screen and (ma x-width:799px)" />
26 </picture>
27 </body>
28 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698