Files
firefox/devtools/server/tests/unit/test_protocolSpec.js
T
2018-03-12 13:44:41 -05:00

20 lines
428 B
JavaScript

"use strict";
const run_test = Test(async function() {
initTestDebuggerServer();
const connection = DebuggerServer.connectPipe();
const client = Async(new DebuggerClient(connection));
await client.connect();
const response = await client.request({
to: "root",
type: "protocolDescription"
});
assert(response.from == "root");
assert(typeof (response.types) === "object");
await client.close();
});