// This message will be logged as an error in all tests to avoid waiting // indefinitely for messages that will not be logged. const CANARY = "canary-error-message";
add_task(async function test_AssertMethod_levels() { for (const test of TESTS) { const { method, methodLevel } = test; const callMethodFn =
test.callMethodFn || ((logger, msg) => logger[method](msg));
for (const level of Object.keys(levelToInteger)) { const ci = console.createInstance({ maxLogLevel: level });
consoleListener.prototype = {
observe(aSubject) {
let obj = aSubject.wrappedJSObject;
// Received the expected message, remove listener and resolve true. if (obj.arguments[0].includes(expectedContent)) {
removeConsoleStorageListener(this);
r(true);
}
// Received the canary, meaning we missed the expected message. // Remove listener and resolve false. if (obj.arguments[0].includes(CANARY)) {
removeConsoleStorageListener(this);
r(false);
}
},
};
new consoleListener();
});
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.14 Sekunden
(vorverarbeitet am 2026-08-25)
¤
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.