15 lines
392 B
JavaScript
15 lines
392 B
JavaScript
/* Any copyright is dedicated to the Public Domain.
|
|
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
// Ensure target is closed if client is closed directly
|
|
function test() {
|
|
waitForExplicitFinish();
|
|
|
|
getParentProcessActors((client, target) => {
|
|
target.on("target-destroyed", () => {
|
|
ok(true, "Target was destroyed");
|
|
finish();
|
|
});
|
|
client.close();
|
|
});
|
|
}
|