tor-browser

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

test_fetch_lnk.html (707B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>Downloading .lnk through HTTP should always download the file without parsing it</title>
      4 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
      5 <script src="/tests/SimpleTest/SimpleTest.js"></script>
      6 <script>
      7  SimpleTest.waitForExplicitFinish();
      8  // Download .lnk which points to a system executable
      9  fetch("file_lnk.lnk").then(async res => {
     10    ok(res.ok, "Download success");
     11    ok(res.url.endsWith("file_lnk.lnk"), "file name should be of the lnk file");
     12    is(res.headers.get("Content-Length"), "1531", "The size should be of the lnk file");
     13    SimpleTest.finish();
     14  }, () => {
     15    ok(false, "Unreachable code");
     16  })
     17 </script>