mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-13 20:14:57 -10:00
16 lines
423 B
JavaScript
16 lines
423 B
JavaScript
/* Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
"use strict";
|
|
|
|
add_task(
|
|
threadFrontTest(async ({ threadFront }) => {
|
|
const onPaused = waitForEvent(threadFront, "paused");
|
|
await threadFront.interrupt();
|
|
await onPaused;
|
|
Assert.equal(threadFront.paused, true);
|
|
await threadFront.resume();
|
|
Assert.equal(threadFront.paused, false);
|
|
})
|
|
);
|