compressed-image-sniffing.sub.html (631B)
1 <!-- Test verifies that compressed images should not be blocked 2 --> 3 <script src=/resources/testharness.js></script> 4 <script src=/resources/testharnessreport.js></script> 5 <div id=log></div> 6 <script> 7 async_test(function(t) { 8 let url = "http://{{domains[www1]}}:{{ports[http][0]}}" 9 url = url + "/fetch/orb/resources/png-unlabeled.png?pipe=gzip" 10 11 const img = document.createElement("img"); 12 img.src = url; 13 img.onerror = t.unreached_func("Unexpected error event") 14 img.onload = t.step_func_done(function () { 15 assert_true(true); 16 }) 17 document.body.appendChild(img) 18 }, "ORB shouldn't block compressed images"); 19 </script>