Closed Bug 1579258 Opened 6 years ago Closed 6 years ago

[wpt-sync] Sync PR 18883 - [NativeFS] Refactor WPT tests to support native FS as well.

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox71 fixed)

RESOLVED FIXED
mozilla71
Tracking Status
firefox71 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 18883 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/18883
Details from upstream follow.

Marijn Kruisselbrink <mek@chromium.org> wrote:

[NativeFS] Refactor WPT tests to support native FS as well.

Also changes the sandboxed file system version of these tests to run in
both windows and workers.

The native file system version of these tests are currently manual tests.
In the future we can automate them. Also currently some of the writer
tests don't pass in the native file system version, because of things like
bug 998913.

Bug: 998917
Change-Id: I4aefee6e35008afd73c2cf316d16ea189717bd4b
Reviewed-on: https://chromium-review.googlesource.com/1787869
WPT-Export-Revision: c4be054059a6ad3ccb82eefdf61f2430f4b96ce8

Ran 12 tests and 167 subtests OK : 12 FAIL : 167 New tests that have failures or other problems: /native-file-system/native_FileSystemDirectoryHandle-getDirectory.tentative.https.manual.window.html User granted write access.: FAIL User succesfully selected an empty directory.: FAIL getDirectory() when a file already exists with the same name: FAIL getDirectory() with "." name: FAIL getDirectory() with ".." name: FAIL getDirectory() with empty name: FAIL getDirectory(create=false) rejects for non-existing directories: FAIL getDirectory(create=false) returns existing directories: FAIL getDirectory(create=false) with a path separator when the directory exists: FAIL getDirectory(create=true) creates an empty directory: FAIL getDirectory(create=true) returns existing directories without erasing: FAIL getDirectory(create=true) with a path separator: FAIL /native-file-system/native_FileSystemDirectoryHandle-getFile.tentative.https.manual.window.html User granted write access.: FAIL User succesfully selected an empty directory.: FAIL getFile() with "." name: FAIL getFile() with ".." name: FAIL getFile() with empty name: FAIL getFile(create=false) rejects for non-existing files: FAIL getFile(create=false) returns existing files: FAIL getFile(create=false) when a directory already exists with the same name: FAIL getFile(create=false) with a path separator when the file exists.: FAIL getFile(create=true) creates an empty file for non-existing files: FAIL getFile(create=true) returns existing files without erasing: FAIL getFile(create=true) when a directory already exists with the same name: FAIL getFile(create=true) with a path separator: FAIL /native-file-system/native_FileSystemDirectoryHandle-removeEntry.tentative.https.manual.window.html User granted write access.: FAIL User succesfully selected an empty directory.: FAIL removeEntry() on a non-empty directory should fail: FAIL removeEntry() on an already removed file should fail: FAIL removeEntry() to remove a file: FAIL removeEntry() to remove an empty directory: FAIL removeEntry() with "." name should fail: FAIL removeEntry() with ".." name should fail: FAIL removeEntry() with a path separator should fail.: FAIL removeEntry() with empty name should fail: FAIL /native-file-system/native_FileSystemWriter.tentative.https.manual.window.html User granted write access.: FAIL User succesfully selected an empty directory.: FAIL atomic writes: close() after close() fails: FAIL atomic writes: close() fails when parent directory is removed: FAIL atomic writes: only one close() operation may succeed: FAIL atomic writes: truncate() after close() fails: FAIL atomic writes: write() after close() fails: FAIL atomic writes: writer persists file on close, even if file is removed: FAIL atomic writes: writers make atomic changes on close: FAIL createWriter() fails when parent directory is removed: FAIL createWriter({keepExistingData: false}): atomic writer initialized with empty file: FAIL createWriter({keepExistingData: true}): atomic writer initialized with source contents: FAIL truncate() fails when parent directory is removed: FAIL truncate() to grow a file: FAIL truncate() to shrink a file: FAIL write() a blob to an empty file: FAIL write() called with a blob and a valid offset: FAIL write() called with an invalid offset: FAIL write() fails when parent directory is removed: FAIL write() with a string with unix line ending preserved: FAIL write() with a string with windows line ending preserved: FAIL write() with a valid typed array buffer: FAIL write() with a valid utf-8 string: FAIL write() with an empty array buffer to an empty file: FAIL write() with an empty blob to an empty file: FAIL write() with an empty string to an empty file: FAIL /native-file-system/sandboxed_FileSystemDirectoryHandle-getDirectory.tentative.https.any.html getDirectory() when a file already exists with the same name: FAIL getDirectory() with "." name: FAIL getDirectory() with ".." name: FAIL getDirectory() with empty name: FAIL getDirectory(create=false) rejects for non-existing directories: FAIL getDirectory(create=false) returns existing directories: FAIL getDirectory(create=false) with a path separator when the directory exists: FAIL getDirectory(create=true) creates an empty directory: FAIL getDirectory(create=true) returns existing directories without erasing: FAIL getDirectory(create=true) with a path separator: FAIL /native-file-system/sandboxed_FileSystemDirectoryHandle-getDirectory.tentative.https.any.worker.html getDirectory() when a file already exists with the same name: FAIL getDirectory() with "." name: FAIL getDirectory() with ".." name: FAIL getDirectory() with empty name: FAIL getDirectory(create=false) rejects for non-existing directories: FAIL getDirectory(create=false) returns existing directories: FAIL getDirectory(create=false) with a path separator when the directory exists: FAIL getDirectory(create=true) creates an empty directory: FAIL getDirectory(create=true) returns existing directories without erasing: FAIL getDirectory(create=true) with a path separator: FAIL /native-file-system/sandboxed_FileSystemDirectoryHandle-getFile.tentative.https.any.html getFile() with "." name: FAIL getFile() with ".." name: FAIL getFile() with empty name: FAIL getFile(create=false) rejects for non-existing files: FAIL getFile(create=false) returns existing files: FAIL getFile(create=false) when a directory already exists with the same name: FAIL getFile(create=false) with a path separator when the file exists.: FAIL getFile(create=true) creates an empty file for non-existing files: FAIL getFile(create=true) returns existing files without erasing: FAIL getFile(create=true) when a directory already exists with the same name: FAIL getFile(create=true) with a path separator: FAIL /native-file-system/sandboxed_FileSystemDirectoryHandle-getFile.tentative.https.any.worker.html getFile() with "." name: FAIL getFile() with ".." name: FAIL getFile() with empty name: FAIL getFile(create=false) rejects for non-existing files: FAIL getFile(create=false) returns existing files: FAIL getFile(create=false) when a directory already exists with the same name: FAIL getFile(create=false) with a path separator when the file exists.: FAIL getFile(create=true) creates an empty file for non-existing files: FAIL getFile(create=true) returns existing files without erasing: FAIL getFile(create=true) when a directory already exists with the same name: FAIL getFile(create=true) with a path separator: FAIL /native-file-system/sandboxed_FileSystemDirectoryHandle-removeEntry.tentative.https.any.html removeEntry() on a non-empty directory should fail: FAIL removeEntry() on an already removed file should fail: FAIL removeEntry() to remove a file: FAIL removeEntry() to remove an empty directory: FAIL removeEntry() with "." name should fail: FAIL removeEntry() with ".." name should fail: FAIL removeEntry() with a path separator should fail.: FAIL removeEntry() with empty name should fail: FAIL /native-file-system/sandboxed_FileSystemDirectoryHandle-removeEntry.tentative.https.any.worker.html removeEntry() on a non-empty directory should fail: FAIL removeEntry() on an already removed file should fail: FAIL removeEntry() to remove a file: FAIL removeEntry() to remove an empty directory: FAIL removeEntry() with "." name should fail: FAIL removeEntry() with ".." name should fail: FAIL removeEntry() with a path separator should fail.: FAIL removeEntry() with empty name should fail: FAIL /native-file-system/sandboxed_FileSystemWriter.tentative.https.any.html atomic writes: close() after close() fails: FAIL atomic writes: close() fails when parent directory is removed: FAIL atomic writes: only one close() operation may succeed: FAIL atomic writes: truncate() after close() fails: FAIL atomic writes: write() after close() fails: FAIL atomic writes: writer persists file on close, even if file is removed: FAIL atomic writes: writers make atomic changes on close: FAIL createWriter() fails when parent directory is removed: FAIL createWriter({keepExistingData: false}): atomic writer initialized with empty file: FAIL createWriter({keepExistingData: true}): atomic writer initialized with source contents: FAIL truncate() fails when parent directory is removed: FAIL truncate() to grow a file: FAIL truncate() to shrink a file: FAIL write() a blob to an empty file: FAIL write() called with a blob and a valid offset: FAIL write() called with an invalid offset: FAIL write() fails when parent directory is removed: FAIL write() with a string with unix line ending preserved: FAIL write() with a string with windows line ending preserved: FAIL write() with a valid typed array buffer: FAIL write() with a valid utf-8 string: FAIL write() with an empty array buffer to an empty file: FAIL write() with an empty blob to an empty file: FAIL write() with an empty string to an empty file: FAIL /native-file-system/sandboxed_FileSystemWriter.tentative.https.any.worker.html atomic writes: close() after close() fails: FAIL atomic writes: close() fails when parent directory is removed: FAIL atomic writes: only one close() operation may succeed: FAIL atomic writes: truncate() after close() fails: FAIL atomic writes: write() after close() fails: FAIL atomic writes: writer persists file on close, even if file is removed: FAIL atomic writes: writers make atomic changes on close: FAIL createWriter() fails when parent directory is removed: FAIL createWriter({keepExistingData: false}): atomic writer initialized with empty file: FAIL createWriter({keepExistingData: true}): atomic writer initialized with source contents: FAIL truncate() fails when parent directory is removed: FAIL truncate() to grow a file: FAIL truncate() to shrink a file: FAIL write() a blob to an empty file: FAIL write() called with a blob and a valid offset: FAIL write() called with an invalid offset: FAIL write() fails when parent directory is removed: FAIL write() with a string with unix line ending preserved: FAIL write() with a string with windows line ending preserved: FAIL write() with a valid typed array buffer: FAIL write() with a valid utf-8 string: FAIL write() with an empty array buffer to an empty file: FAIL write() with an empty blob to an empty file: FAIL write() with an empty string to an empty file: FAIL
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/d90e9eb3b43f [wpt PR 18883] - [NativeFS] Refactor WPT tests to support native FS as well., a=testonly https://hg.mozilla.org/integration/mozilla-inbound/rev/539289b2d0cd [wpt PR 18883] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
You need to log in before you can comment on or make changes to this bug.