summaryrefslogtreecommitdiffstats
path: root/devtools/server/tests/xpcshell/test_interrupt.js
blob: 07593a73609f179efbe9e986fced38ca90b2ca7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* Any copyright is dedicated to the Public Domain.
   http://creativecommons.org/publicdomain/zero/1.0/ */

"use strict";

add_task(
  threadFrontTest(async ({ threadFront, debuggee, client, targetFront }) => {
    const onPaused = waitForEvent(threadFront, "paused");
    await threadFront.interrupt();
    await onPaused;
    Assert.equal(threadFront.paused, true);
    await threadFront.resume();
    Assert.equal(threadFront.paused, false);
  })
);