summaryrefslogtreecommitdiffstats
path: root/devtools/client/framework/test/browser_target_remote.js
blob: 272797d626af7e0e13a9147201d106418edd4ba4 (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/ */

// 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();
  });
}