summaryrefslogtreecommitdiffstats
path: root/dom/system/tests/ioutils/test_ioutils_read_write_utf8.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:14:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:14:29 +0000
commitfbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 (patch)
tree4c1ccaf5486d4f2009f9a338a98a83e886e29c97 /dom/system/tests/ioutils/test_ioutils_read_write_utf8.html
parentReleasing progress-linux version 124.0.1-1~progress7.99u1. (diff)
downloadfirefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.tar.xz
firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.zip
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/system/tests/ioutils/test_ioutils_read_write_utf8.html')
-rw-r--r--dom/system/tests/ioutils/test_ioutils_read_write_utf8.html18
1 files changed, 9 insertions, 9 deletions
diff --git a/dom/system/tests/ioutils/test_ioutils_read_write_utf8.html b/dom/system/tests/ioutils/test_ioutils_read_write_utf8.html
index cdea016732..e1a1864656 100644
--- a/dom/system/tests/ioutils/test_ioutils_read_write_utf8.html
+++ b/dom/system/tests/ioutils/test_ioutils_read_write_utf8.html
@@ -26,7 +26,7 @@
const doesNotExist = PathUtils.join(PathUtils.tempDir, "does_not_exist.tmp");
await Assert.rejects(
IOUtils.readUTF8(doesNotExist),
- /Could not open the file at .*/,
+ /NotFoundError: Could not open `.*'/,
"IOUtils::readUTF8 rejects when file does not exist"
);
@@ -38,7 +38,7 @@
await Assert.rejects(
IOUtils.readUTF8(invalidUTF8File),
- /Could not read file\(.*\) because it is not UTF-8 encoded/,
+ /NotReadableError: Could not read `.*': file is not UTF-8 encoded/,
"IOUtils::readUTF8 will reject when reading a file that is not valid UTF-8"
);
@@ -56,7 +56,7 @@
IOUtils.writeUTF8(tmpFileName, newContents, {
mode: "create",
}),
- /Refusing to overwrite the file at */,
+ /NoModificationAllowedError: Could not write to `.*': refusing to overwrite file, `mode' is not "overwrite"/,
"IOUtils::writeUTF8 rejects writing to existing file if overwrites are disabled"
);
ok(
@@ -233,7 +233,7 @@
info("Test writing a file at a relative destination");
await Assert.rejects(
IOUtils.writeUTF8(tmpFileName, "foo"),
- /Could not parse path/,
+ /OperationError: Could not write to `.*': could not parse path \(NS_ERROR_FILE_UNRECOGNIZED_PATH\)/,
"IOUtils::writeUTF8 only works with absolute paths"
);
});
@@ -244,7 +244,7 @@
info("Test reading a file at a relative destination");
await Assert.rejects(
IOUtils.readUTF8(tmpFileName),
- /Could not parse path/,
+ /OperationError: Could not read `.*': could not parse path \(NS_ERROR_FILE_UNRECOGNIZED_PATH\)/,
"IOUtils::readUTF8 only works with absolute paths"
);
});
@@ -309,7 +309,7 @@
await Assert.rejects(
IOUtils.readUTF8(tmpFileName, { decompress: true }),
- /Could not decompress file because it has an invalid LZ4 header \(wrong magic number: .*\)/,
+ /NotReadableError: Could not read `.*': could not decompress file: invalid LZ4 header: wrong magic number: `01 01 01 01 01 01 01 01 01 01 01 01' \(NS_ERROR_FILE_CORRUPTED\)/,
"IOUtils::readUTF8 fails to decompress LZ4 data with a bad header"
);
@@ -319,7 +319,7 @@
await Assert.rejects(
IOUtils.readUTF8(tmpFileName, { decompress: true }),
- /Could not decompress file because the buffer is too short/,
+ /NotReadableError: Could not read `.*': could not decompress file: buffer is too small \(NS_ERROR_FILE_CORRUPTED\)/,
"IOUtils::readUTF8 fails to decompress LZ4 data with missing header"
);
@@ -331,7 +331,7 @@
await Assert.rejects(
IOUtils.readUTF8(tmpFileName, { decompress: true }),
- /Could not decompress file contents, the file may be corrupt/,
+ /NotReadableError: Could not read `.*': could not decompress file: the file may be corrupt \(NS_ERROR_FILE_CORRUPTED\)/,
"IOUtils::readUTF8 fails to read corrupt LZ4 contents with a correct header"
);
@@ -342,7 +342,7 @@
}
await Assert.rejects(
IOUtils.readUTF8(tmpFileName, { decompress: true }),
- /Could not decompress file because the buffer is too short/,
+ /NotReadableError: Could not read `.*': could not decompress file: buffer is too small \(NS_ERROR_FILE_CORRUPTED\)/,
"IOUtils::readUTF8 fails to decompress empty files"
);