OLD | NEW |
(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> |
OLD | NEW |