tor-browser

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

test_interrupt.js (423B)


      1 /* Any copyright is dedicated to the Public Domain.
      2   http://creativecommons.org/publicdomain/zero/1.0/ */
      3 
      4 "use strict";
      5 
      6 add_task(
      7  threadFrontTest(async ({ threadFront }) => {
      8    const onPaused = waitForEvent(threadFront, "paused");
      9    await threadFront.interrupt();
     10    await onPaused;
     11    Assert.equal(threadFront.paused, true);
     12    await threadFront.resume();
     13    Assert.equal(threadFront.paused, false);
     14  })
     15 );