tor-browser

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

browser_setup_runs_for_only_tests.js (336B)


      1 /* Any copyright is dedicated to the Public Domain.
      2   http://creativecommons.org/publicdomain/zero/1.0/ */
      3 
      4 "use strict";
      5 
      6 let someVar = 1;
      7 
      8 add_setup(() => {
      9  someVar = 2;
     10 });
     11 
     12 /* eslint-disable mozilla/reject-addtask-only */
     13 add_task(() => {
     14  is(someVar, 2, "Setup should have run, even though this is the only test.");
     15 }).only();