Files
firefox/devtools/server/tests/unit/test_protocolSpec.js
T

17 lines
394 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.mainRoot.protocolDescription();
assert(response.from == "root");
assert(typeof response.types === "object");
await client.close();
});