tor-browser

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

test_imageSrcSet.html (1101B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=980243
      5 -->
      6 <head>
      7  <meta charset="utf-8">
      8  <title>Test for Bug 980243</title>
      9  <script src="/tests/SimpleTest/SimpleTest.js"></script>
     10  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     11  <script type="application/javascript">
     12 
     13  /** Test for Bug 980243 */
     14  SimpleTest.waitForExplicitFinish();
     15 
     16  addLoadEvent(function() {
     17    var img = document.querySelector("img");
     18    img.onload = function() {
     19      ok(true, "Reached here");
     20      SimpleTest.finish();
     21    }
     22    // If ths spec ever changes to treat .src sets differently from
     23    // setAttribute("src"), we'll need some sort of canonicalization step
     24    // earlier to make the attr value an absolute URI.
     25    img.setAttribute("src", img.getAttribute("src"));
     26  });
     27  </script>
     28 </head>
     29 <body>
     30 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=980243">Mozilla Bug 980243</a>
     31 <p id="display"></p>
     32 <div id="content" style="display: none">
     33  <img src="file_formSubmission_img.jpg">
     34 </div>
     35 <pre id="test">
     36 </pre>
     37 </body>
     38 </html>