OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="/resources/testharness.js"></script> |
| 3 <script src="/resources/testharnessreport.js"></script> |
| 4 <script> |
| 5 async_test(t => { |
| 6 var i = document.createElement('img'); |
| 7 i.onload = t.unreached_func('The image should not load.'); |
| 8 i.onerror = t.step_func_done(e => { |
| 9 assert_equals(i.naturalWidth, 0); |
| 10 assert_equals(i.naturalHeight, 0); |
| 11 }); |
| 12 |
| 13 i.src = 'ftp://example.test/image.png'; |
| 14 }, "'ftp:' subresource requests fail."); |
| 15 </script> |
OLD | NEW |