tor-browser

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

test.js (498B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 /* global ConditionBase */
      6 
      7 /**
      8 * Simple condition for testing
      9 */
     10 class ConditionTest extends ConditionBase {
     11  #ret;
     12 
     13  constructor(factory, desc) {
     14    super(factory, desc);
     15    this.#ret = desc.ret;
     16  }
     17 
     18  check() {
     19    return this.#ret;
     20  }
     21 }
     22 
     23 globalThis.ConditionTest = ConditionTest;