const data = await openChannelRead(chan); const lines = data.split("\n");
Assert.equal(
lines[0], "200: filename content-length last-modified file-type", "First line must be the http-index-format header"
);
const driveLines = lines.filter(l => l.startsWith("201: ")); Assert.greater(driveLines.length, 0, "At least one drive must be listed");
const driveRe =
/^201: [A-Z]:\/\s+0\s+Thu,%2001%20Jan%201970%2000:00:00%20GMT DIRECTORY$/; for (const line of driveLines) { Assert.ok(driveRe.test(line), `Drive line has expected format: "${line}"`);
}
Assert.ok(
driveLines.some(l => l.startsWith("201: C:/")), "C: drive must appear in the listing"
);
});
add_task(async function test_posix_root_listing_format() { if (AppConstants.platform == "win") { return;
}
const data = await openChannelRead(chan); const lines = data.split("\n");
Assert.equal(
lines[0], "200: filename content-length last-modified file-type", "First line must be the http-index-format header"
);
const driveLines = lines.filter(l => l.startsWith("201: ")); Assert.greater(driveLines.length, 0, "Root directory must have entries");
const entryRe = /^201: \S+ \d+ \S+ (FILE|DIRECTORY|SYMBOLIC-LINK) $/; for (const line of driveLines) { Assert.ok(entryRe.test(line), `Entry has expected format: "${line}"`);
}
const names = new Set(driveLines.map(l => l.split(" ")[1])); Assert.ok(names.has("etc"), "'etc' must appear in the root listing"); Assert.ok(names.has("tmp"), "'tmp' must appear in the root listing");
});
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.31 Sekunden
(vorverarbeitet am 2026-09-29)
¤
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.