tenfourfox/devtools/server/tests/unit/test_protocolSpec.js
Cameron Kaiser c9b2922b70 hello FPR
2017-04-19 00:56:45 -07:00

18 lines
407 B
JavaScript

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