summaryrefslogtreecommitdiffstats
path: root/dom/system/tests/ioutils/test_ioutils_mkdir.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
commit40a355a42d4a9444dc753c04c6608dade2f06a23 (patch)
tree871fc667d2de662f171103ce5ec067014ef85e61 /dom/system/tests/ioutils/test_ioutils_mkdir.html
parentAdding upstream version 124.0.1. (diff)
downloadfirefox-upstream/125.0.1.tar.xz
firefox-upstream/125.0.1.zip
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/system/tests/ioutils/test_ioutils_mkdir.html')
-rw-r--r--dom/system/tests/ioutils/test_ioutils_mkdir.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/dom/system/tests/ioutils/test_ioutils_mkdir.html b/dom/system/tests/ioutils/test_ioutils_mkdir.html
index 6827b24cc6..e95873fd17 100644
--- a/dom/system/tests/ioutils/test_ioutils_mkdir.html
+++ b/dom/system/tests/ioutils/test_ioutils_mkdir.html
@@ -33,7 +33,7 @@
);
await Assert.rejects(
IOUtils.makeDirectory(newDirectoryName, { ignoreExisting: false }),
- /Could not create directory because it already exists at .*/,
+ /NoModificationAllowedError: Could not create directory `.*': directory already exists/,
"IOUtils::makeDirectory can throw if the target dir exists"
)
@@ -45,7 +45,7 @@
);
await Assert.rejects(
IOUtils.makeDirectory(nestedDirName, { createAncestors: false }),
- /Could not create directory at .*/,
+ /NotFoundError: Could not create directory `.*'/,
"IOUtils::makeDirectory can fail if the target is missing parents"
);
ok(!await IOUtils.exists(nestedDirName), `Expected ${nestedDirName} not to exist`);
@@ -65,14 +65,14 @@
await Assert.rejects(
IOUtils.makeDirectory(notADirFileName, { ignoreExisting: false }),
- /Could not create directory because the target file\(.*\) exists and is not a directory/,
+ /InvalidAccessError: Could not create directory `.*': file exists and is not a directory/,
"IOUtils::makeDirectory [ignoreExisting: false] throws when the target is an existing file"
);
ok(await fileExists(notADirFileName), `Expected ${notADirFileName} to exist`);
await Assert.rejects(
IOUtils.makeDirectory(notADirFileName, { ignoreExisting: true }),
- /Could not create directory because the target file\(.*\) exists and is not a directory/,
+ /InvalidAccessError: Could not create directory `.*': file exists and is not a directory/,
"IOUtils::makeDirectory [ignoreExisting: true] throws when the target is an existing file"
);
ok(await fileExists(notADirFileName), `Expected ${notADirFileName} to exist`);