tor-browser

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

test_globalObjects_content.html (943B)


      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  function* testSteps()
     14  {
     15    const name = window.location.pathname;
     16 
     17    // Test for IDBKeyRange and indexedDB availability in content windows.
     18    let keyRange = IDBKeyRange.only(42);
     19    ok(keyRange, "Got keyRange");
     20 
     21    let request = indexedDB.open(name, 1);
     22    request.onerror = errorHandler;
     23    request.onsuccess = grabEventAndContinueHandler;
     24    let event = yield undefined;
     25 
     26    let db = event.target.result;
     27    ok(db, "Got database");
     28 
     29    finishTest();
     30  }
     31  </script>
     32  <script type="text/javascript" src="helpers.js"></script>
     33 </head>
     34 
     35 <body onload="runTest();"></body>
     36 
     37 </html>