tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

fail-to-resolve.html (574B)


      1 <!doctype html>
      2 <title>img update the image data: fail to resolve URL</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <div id=log></div>
      6 
      7 <img src="//[">
      8 <img srcset="//[">
      9 <img srcset="//[" src="/images/red.png">
     10 <img srcset="//[, /images/red.png">
     11 
     12 <script>
     13 setup({explicit_done: true});
     14 
     15 var expected = '//[';
     16 
     17 onload = function() {
     18  [].forEach.call(document.images, function(img) {
     19    test(function() {
     20      assert_equals(img.currentSrc, expected);
     21    }, img.outerHTML);
     22  });
     23  done();
     24 };
     25 </script>