| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <title>Mixed-Content: imageset tests</title> |
| 5 <meta charset='utf-8'> |
| 6 <meta name="description" content="Test behavior of imageset resources, makin
g sure that resources are not downloaded."> |
| 7 <link rel="author" title="Yoav Weiss" href="yoav@yoav.ws"> |
| 8 <script src="/resources/testharness.js"></script> |
| 9 <script src="/resources/testharnessreport.js"></script> |
| 10 <script src="/preload/resources/preload_helper.js"></script> |
| 11 <script> |
| 12 var t = async_test('Makes sure imageset blockable resources are not downlo
aded'); |
| 13 </script> |
| 14 </head> |
| 15 <body> |
| 16 <img src="http://{{domains[]}}:{{ports[http][0]}}/images/smiley.png?img_src"> |
| 17 <picture> |
| 18 <source srcset="http://{{domains[]}}:{{ports[http][0]}}/images/smiley.png?pi
cture"> |
| 19 <img> |
| 20 </picture> |
| 21 <img srcset="http://{{domains[]}}:{{ports[http][0]}}/images/smiley.png?img_src
set"> |
| 22 <script> |
| 23 window.addEventListener("load", t.step_func(function() { |
| 24 verifyNumberOfDownloads("http://{{domains[]}}:{{ports[http][0]}}/images/
smiley.png?img_src", 1); |
| 25 verifyNumberOfDownloads("http://{{domains[]}}:{{ports[http][0]}}/images/
smiley.png?picture", 0); |
| 26 verifyNumberOfDownloads("http://{{domains[]}}:{{ports[http][0]}}/images/
smiley.png?img_srcset", 0); |
| 27 t.done(); |
| 28 })); |
| 29 </script> |
| 30 </body> |
| 31 </html> |
| OLD | NEW |