forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[M109] FSA: Re-enable overwriting moves
Partial revert of https://crrev.com/c/3930658. Throwing on overwriting moves does not match POSIX. See discussion on the spec: whatwg/fs#10 (comment) This CL is being cherry-picked to M109 to ensure overwriting moves are allowed in that milestone (which matches the previous behavior) (cherry picked from commit 0eeab37) Bug: 1366652, 1381621 Change-Id: Ic27fb61e7598c4feb8ee770ceb78fe1fbfd28cda Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4048780 Auto-Submit: Austin Sullivan <[email protected]> Reviewed-by: Daseul Lee <[email protected]> Commit-Queue: Daseul Lee <[email protected]> Cr-Original-Commit-Position: refs/heads/main@{#1074882} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4049684 Commit-Queue: Austin Sullivan <[email protected]> Cr-Commit-Position: refs/branch-heads/5414@{chromium#223} Cr-Branched-From: 4417ee5-refs/heads/main@{#1070088}
- Loading branch information
Showing
4 changed files
with
54 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
third_party/blink/web_tests/external/wpt/fs/FileSystemFileHandle-move.https.any-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
This is a testharness.js-based test. | ||
PASS move(name) to rename a file | ||
PASS get a handle to a moved file | ||
PASS move(name) to rename a file the same name | ||
PASS move("") to rename a file fails | ||
PASS move(name) can be called multiple times | ||
PASS move(name) with a name with a trailing period should fail | ||
PASS move(name) with a name with invalid characters should fail | ||
PASS move(name) while the file has an open writable fails | ||
FAIL move(name) while the destination file has an open writable fails assert_unreached: Should have rejected: undefined Reached unreachable code | ||
PASS move(dir, name) to rename a file | ||
PASS move(dir, name) to rename a file the same name | ||
PASS move(dir) to move a file to a new directory | ||
PASS move(dir, "") to move a file to a new directory fails | ||
PASS move(dir, name) to move a file to a new directory | ||
PASS move(dir) can be called multiple times | ||
PASS move(dir, name) can be called multiple times | ||
PASS move(dir, name) with a name with invalid characters should fail | ||
PASS move(dir) while the file has an open writable fails | ||
PASS move(dir, name) while the file has an open writable fails | ||
FAIL move(dir) while the destination file has an open writable fails assert_unreached: Should have rejected: undefined Reached unreachable code | ||
FAIL move(dir, name) while the destination file has an open writable fails assert_unreached: Should have rejected: undefined Reached unreachable code | ||
Harness: the test ran to completion. | ||
|
24 changes: 24 additions & 0 deletions
24
...y/blink/web_tests/external/wpt/fs/FileSystemFileHandle-move.https.any.worker-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
This is a testharness.js-based test. | ||
PASS move(name) to rename a file | ||
PASS get a handle to a moved file | ||
PASS move(name) to rename a file the same name | ||
PASS move("") to rename a file fails | ||
PASS move(name) can be called multiple times | ||
PASS move(name) with a name with a trailing period should fail | ||
PASS move(name) with a name with invalid characters should fail | ||
PASS move(name) while the file has an open writable fails | ||
FAIL move(name) while the destination file has an open writable fails assert_unreached: Should have rejected: undefined Reached unreachable code | ||
PASS move(dir, name) to rename a file | ||
PASS move(dir, name) to rename a file the same name | ||
PASS move(dir) to move a file to a new directory | ||
PASS move(dir, "") to move a file to a new directory fails | ||
PASS move(dir, name) to move a file to a new directory | ||
PASS move(dir) can be called multiple times | ||
PASS move(dir, name) can be called multiple times | ||
PASS move(dir, name) with a name with invalid characters should fail | ||
PASS move(dir) while the file has an open writable fails | ||
PASS move(dir, name) while the file has an open writable fails | ||
FAIL move(dir) while the destination file has an open writable fails assert_unreached: Should have rejected: undefined Reached unreachable code | ||
FAIL move(dir, name) while the destination file has an open writable fails assert_unreached: Should have rejected: undefined Reached unreachable code | ||
Harness: the test ran to completion. | ||
|