summaryrefslogtreecommitdiffstats
path: root/devtools/server/tests/unit/test_protocolSpec.js
blob: cc0746387a3f351e522895391497f1cc88f07e0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const run_test = Test(function* () {
  initTestDebuggerServer();
  const connection = DebuggerServer.connectPipe();
  const client = Async(new DebuggerClient(connection));

  yield client.connect();

  const response = yield client.request({
    to: "root",
    type: "protocolDescription"
  });

  assert(response.from == "root");
  assert(typeof (response.types) === "object");

  yield client.close();
});