tor-browser

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

test_quotaUtilsService.js (547B)


      1 /**
      2 * Any copyright is dedicated to the Public Domain.
      3 * http://creativecommons.org/publicdomain/zero/1.0/
      4 */
      5 
      6 /* exported testSteps */
      7 async function testSteps() {
      8  const quotaUtilsService = Cc[
      9    "@mozilla.org/dom/quota-utils-service;1"
     10  ].getService(Ci.nsIQuotaUtilsService);
     11 
     12  {
     13    const id = quotaUtilsService.getPrivateIdentityId("");
     14    Assert.equal(id, 0, "Correct id");
     15  }
     16 
     17  {
     18    const id = quotaUtilsService.getPrivateIdentityId(
     19      "userContextIdInternal.thumbnail"
     20    );
     21    Assert.greater(id, 4, "Correct id");
     22  }
     23 }