mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 02:40:22 -10:00
20 lines
471 B
JavaScript
20 lines
471 B
JavaScript
"use strict";
|
|
|
|
const run_test = Test(async function() {
|
|
initTestDebuggerServer();
|
|
const connection = DebuggerServer.connectPipe();
|
|
const client = new DebuggerClient(connection);
|
|
|
|
await client.connect();
|
|
|
|
const response = await client.mainRoot.protocolDescription();
|
|
|
|
assert(response.from == "root", "response.from has expected value");
|
|
assert(
|
|
typeof response.types === "object",
|
|
"response.types has expected type"
|
|
);
|
|
|
|
await client.close();
|
|
});
|