Skip to content

Commit 377b7c8

Browse files
a-sullymoz-wptsync-bot
authored andcommitted
Bug 1770024 [wpt PR 34115] - FSA: Reject with NoModificationAllowedError if AccessHandle is locked, a=testonly
Automatic update from web-platform-tests FSA: Reject with NoModificationAllowedError if AccessHandle is locked Spec PR: whatwg/fs#21 Comment: https://github.com/whatwg/fs/pull/21/files#r876204287 Updates the implementation to match the spec and to match other cases where we reject a promise because of a locked file. Bug: N/A Change-Id: I201fa40a866ecace62c6fe77ad70cffce57c2553 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3653903 Reviewed-by: Marijn Kruisselbrink <[email protected]> Auto-Submit: Austin Sullivan <[email protected]> Commit-Queue: Marijn Kruisselbrink <[email protected]> Cr-Commit-Position: refs/heads/main@{#1005103} -- wpt-commits: cc1e80e5a204d08eeba36a2bd29f206f3d7f8948 wpt-pr: 34115
1 parent 528d960 commit 377b7c8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

testing/web-platform/tests/fs/FileSystemFileHandle-sync-access-handle-writable-lock.https.tentative.worker.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ directory_test(async (t, root_dir) => {
88

99
const syncHandle1 = await fileHandle.createSyncAccessHandle();
1010
await promise_rejects_dom(
11-
t, 'InvalidStateError', fileHandle.createSyncAccessHandle());
11+
t, 'NoModificationAllowedError', fileHandle.createSyncAccessHandle());
1212

1313
await syncHandle1.close();
1414
const syncHandle2 = await fileHandle.createSyncAccessHandle();
@@ -24,7 +24,7 @@ directory_test(async (t, root_dir) => {
2424

2525
const barSyncHandle1 = await barFileHandle.createSyncAccessHandle();
2626
await promise_rejects_dom(
27-
t, 'InvalidStateError', barFileHandle.createSyncAccessHandle());
27+
t, 'NoModificationAllowedError', barFileHandle.createSyncAccessHandle());
2828

2929
await barSyncHandle1.close();
3030
const barSyncHandle2 = await barFileHandle.createSyncAccessHandle();
@@ -61,7 +61,7 @@ directory_test(async (t, root_dir) => {
6161

6262
const syncHandle = await fileHandle.createSyncAccessHandle();
6363
await promise_rejects_dom(
64-
t, 'InvalidStateError', fileHandle.createWritable());
64+
t, 'NoModificationAllowedError', fileHandle.createWritable());
6565

6666
await syncHandle.close();
6767
const writable = await fileHandle.createWritable();
@@ -74,11 +74,11 @@ directory_test(async (t, root_dir) => {
7474
const writable1 = await fileHandle.createWritable();
7575
const writable2 = await fileHandle.createWritable();
7676
await promise_rejects_dom(
77-
t, 'InvalidStateError', fileHandle.createSyncAccessHandle());
77+
t, 'NoModificationAllowedError', fileHandle.createSyncAccessHandle());
7878

7979
await writable1.close();
8080
await promise_rejects_dom(
81-
t, 'InvalidStateError', fileHandle.createSyncAccessHandle());
81+
t, 'NoModificationAllowedError', fileHandle.createSyncAccessHandle());
8282

8383
await writable2.close();
8484
const syncHandle = await fileHandle.createSyncAccessHandle();

0 commit comments

Comments
 (0)