tor-browser

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

test_open_for_principal.html (860B)


      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>Indexed Database Property 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  // eslint-disable-next-line require-yield
     14  function* testSteps()
     15  {
     16    is("open" in indexedDB, true, "open() defined");
     17    is("openForPrincipal" in indexedDB, false, "openForPrincipal() not defined");
     18 
     19    is("deleteDatabase" in indexedDB, true, "deleteDatabase() defined");
     20    is("deleteForPrincipal" in indexedDB, false, "deleteForPrincipal() not defined");
     21 
     22    finishTest();
     23  }
     24  </script>
     25  <script type="text/javascript" src="helpers.js"></script>
     26 
     27 </head>
     28 
     29 <body onload="runTest();"></body>
     30 
     31 </html>