tor-browser

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

test_getFileId.html (720B)


      1 <!--
      2  Any copyright is dedicated to the Public Domain.
      3  http://creativecommons.org/publicdomain/zero/1.0/
      4 -->
      5 <html>
      6 <head>
      7  <title>File Handle Test</title>
      8 
      9  <script src="/tests/SimpleTest/SimpleTest.js"></script>
     10  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     11 
     12  <script type="text/javascript">
     13  function* testSteps()
     14  {
     15    let id = getFileId(null);
     16    ok(id == -1, "Correct id");
     17 
     18    id = getFileId(getRandomBlob(100));
     19    ok(id == -1, "Correct id");
     20 
     21    finishTest();
     22    yield undefined;
     23  }
     24  </script>
     25  <script type="text/javascript" src="file.js"></script>
     26  <script type="text/javascript" src="helpers.js"></script>
     27 
     28 </head>
     29 
     30 <body onload="runTest();"></body>
     31 
     32 </html>