tor-browser

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

test_HeapAnalyses_computeDominatorTree_02.js (489B)


      1 /* Any copyright is dedicated to the Public Domain.
      2   http://creativecommons.org/publicdomain/zero/1.0/ */
      3 "use strict";
      4 
      5 // Test the HeapAnalyses{Client,Worker} "computeDominatorTree" request with bad
      6 // file paths.
      7 
      8 add_task(async function () {
      9  const client = new HeapAnalysesClient();
     10 
     11  let threw = false;
     12  try {
     13    await client.computeDominatorTree("/etc/passwd");
     14  } catch (_) {
     15    threw = true;
     16  }
     17  ok(threw, "should throw when given a bad path");
     18 
     19  client.destroy();
     20 });