tor-browser

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

test_pkcs11_tokenDB.js (499B)


      1 // Any copyright is dedicated to the Public Domain.
      2 // http://creativecommons.org/publicdomain/zero/1.0/
      3 "use strict";
      4 
      5 // Tests the methods for interfacing with the PKCS #11 token database.
      6 
      7 // Ensure that the appropriate initialization has happened.
      8 do_get_profile();
      9 
     10 function run_test() {
     11  let tokenDB = Cc["@mozilla.org/security/pk11tokendb;1"].getService(
     12    Ci.nsIPK11TokenDB
     13  );
     14 
     15  notEqual(
     16    tokenDB.getInternalKeyToken(),
     17    null,
     18    "The internal token should be non-null"
     19  );
     20 }