function dumpn(msg) {
dump("DBG-TEST: " + msg + "\n");
}
function connectPipeTracing() { returnnew TracingTransport(DevToolsServer.connectPipe());
}
/** * Mock the `Transport` class in order to intercept all the packet * getting in and out and then being able to assert them and dump them.
*/ function TracingTransport(childTransport) { this.hooks = null; this.child = childTransport; this.child.hooks = this;
// Write your tests, call dumpLog at the end, inspect the output, // then sprinkle the calls through the right places in your test.
dumpLog() { for (const entry of this.packets) { if (entry.type === "sent") {
dumpn("trace.expectSend(" + entry.packet + ");");
} else {
dumpn("trace.expectReceive(" + entry.packet + ");");
}
}
},
};
Messung V0.5
¤ Dauer der Verarbeitung: 0.17 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.