Closed Bug 1910939 Opened 11 months ago Closed 11 months ago

[wpt-sync] Sync PR 47388 - Change Observer: Add WPTs for FileSystemHandle creation and deletion

Categories

(Core :: DOM: File, task, P4)

task

Tracking

()

RESOLVED FIXED
131 Branch
Tracking Status
firefox131 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Nathan Memmott <memmott@chromium.org> wrote:

Change Observer: Add WPTs for FileSystemHandle creation and deletion

Adds expectations to the WPTs for creation and deletion. Tests that
they emit the correct event and only emit an event while in scope.

Bug: 341136316
Change-Id: I295662e6c631a31c2914e0117e7aaca8d208d3b1
Reviewed-on: https://chromium-review.googlesource.com/5744535
WPT-Export-Revision: 6749f255a7ac6b05157cba821bafae753b1cec2b

Component: web-platform-tests → DOM: File
Product: Testing → Core

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 7 tests and 10 subtests

Status Summary

Firefox

OK : 4
FAIL : 34
ERROR : 3
NOTRUN : 6

Chrome

OK : 5
PASS : 27
FAIL : 8
TIMEOUT: 4
NOTRUN : 3

Safari

OK : 7
FAIL : 40

Links

GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

New Tests That Don't Pass

  • /fs/FileSystemObserver-sync-access-handle.https.tentative.worker.html [wpt.fyi]
    • FileSystemSyncAccessHandle.write produces a "modified" event: FAIL (Chrome: PASS, Safari: FAIL)
    • Multiple FileSystemSyncAccessHandle.writes produces the same amount of "modified" event: FAIL (Chrome: PASS, Safari: FAIL)
    • FileSystemSyncAccessHandle.truncate produces a "modified" event: FAIL (Chrome: PASS, Safari: FAIL)
    • FileSystemSyncAccessHandle methods that don't modify the file don't produce events: FAIL (Chrome: PASS, Safari: FAIL)
  • /fs/FileSystemObserver-writable-file-stream.https.tentative.any.html [wpt.fyi]
    • Closing a FileSystemWritableFileStream that's modified the file produces a "modified" event: FAIL (Chrome: FAIL, Safari: FAIL)
    • All FileSystemWritableFileStream methods that aren't closed don't produce events: FAIL (Chrome: PASS, Safari: FAIL)
  • /fs/FileSystemObserver-writable-file-stream.https.tentative.any.sharedworker.html [wpt.fyi]
    • Closing a FileSystemWritableFileStream that's modified the file produces a "modified" event: FAIL (Chrome: TIMEOUT, Safari: FAIL)
    • All FileSystemWritableFileStream methods that aren't closed don't produce events: FAIL (Chrome: NOTRUN, Safari: FAIL)
  • /fs/FileSystemObserver-writable-file-stream.https.tentative.any.worker.html [wpt.fyi]
    • Closing a FileSystemWritableFileStream that's modified the file produces a "modified" event: FAIL (Chrome: FAIL, Safari: FAIL)
    • All FileSystemWritableFileStream methods that aren't closed don't produce events: FAIL (Chrome: PASS, Safari: FAIL)
  • /fs/FileSystemObserver.https.tentative.any.html [wpt.fyi]: ERROR (Chrome: OK, Safari: OK)
    • Creating a FileSystemObserver from a supported global succeeds: FAIL (Chrome: PASS, Safari: FAIL)
    • Calling unobserve() without a corresponding observe() shouldn't throw: FAIL (Chrome: PASS, Safari: FAIL)
    • unobserve() is idempotent: FAIL (Chrome: PASS, Safari: FAIL)
    • Calling disconnect() without observing shouldn't throw: FAIL (Chrome: PASS, Safari: FAIL)
    • disconnect() is idempotent: FAIL (Chrome: PASS, Safari: FAIL)
    • observe() fails when file does not exist: FAIL (Chrome: FAIL, Safari: FAIL)
    • observe() fails when directory does not exist: FAIL (Chrome: FAIL, Safari: FAIL)
    • Creating a file through FileSystemDirectoryHandle.getFileHandle is reported as an "appeared" event if in scope: FAIL (Chrome: PASS, Safari: FAIL)
    • Removing a file through FileSystemFileHandle.remove is reported as an "disappeared" event if in scope: NOTRUN (Chrome: PASS, Safari: FAIL)
    • Events outside the watch scope are not sent to the observer's callback: NOTRUN (Chrome: PASS, Safari: FAIL)
  • /fs/FileSystemObserver.https.tentative.any.sharedworker.html [wpt.fyi]: ERROR (Chrome: TIMEOUT, Safari: OK)
    • Creating a FileSystemObserver from a supported global succeeds: FAIL (Chrome: PASS, Safari: FAIL)
    • Calling unobserve() without a corresponding observe() shouldn't throw: FAIL (Chrome: PASS, Safari: FAIL)
    • unobserve() is idempotent: FAIL (Chrome: PASS, Safari: FAIL)
    • Calling disconnect() without observing shouldn't throw: FAIL (Chrome: PASS, Safari: FAIL)
    • disconnect() is idempotent: FAIL (Chrome: PASS, Safari: FAIL)
    • observe() fails when file does not exist: FAIL (Chrome: FAIL, Safari: FAIL)
    • observe() fails when directory does not exist: FAIL (Chrome: FAIL, Safari: FAIL)
    • Creating a file through FileSystemDirectoryHandle.getFileHandle is reported as an "appeared" event if in scope: FAIL (Chrome: TIMEOUT, Safari: FAIL)
    • Removing a file through FileSystemFileHandle.remove is reported as an "disappeared" event if in scope: NOTRUN (Chrome: NOTRUN, Safari: FAIL)
    • Events outside the watch scope are not sent to the observer's callback: NOTRUN (Chrome: NOTRUN, Safari: FAIL)
  • /fs/FileSystemObserver.https.tentative.any.worker.html [wpt.fyi]: ERROR (Chrome: OK, Safari: OK)
    • Creating a FileSystemObserver from a supported global succeeds: FAIL (Chrome: PASS, Safari: FAIL)
    • Calling unobserve() without a corresponding observe() shouldn't throw: FAIL (Chrome: PASS, Safari: FAIL)
    • unobserve() is idempotent: FAIL (Chrome: PASS, Safari: FAIL)
    • Calling disconnect() without observing shouldn't throw: FAIL (Chrome: PASS, Safari: FAIL)
    • disconnect() is idempotent: FAIL (Chrome: PASS, Safari: FAIL)
    • observe() fails when file does not exist: FAIL (Chrome: FAIL, Safari: FAIL)
    • observe() fails when directory does not exist: FAIL (Chrome: FAIL, Safari: FAIL)
    • Creating a file through FileSystemDirectoryHandle.getFileHandle is reported as an "appeared" event if in scope: FAIL (Chrome: PASS, Safari: FAIL)
    • Removing a file through FileSystemFileHandle.remove is reported as an "disappeared" event if in scope: NOTRUN (Chrome: PASS, Safari: FAIL)
    • Events outside the watch scope are not sent to the observer's callback: NOTRUN (Chrome: PASS, Safari: FAIL)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e513465ed84f [wpt PR 47388] - Change Observer: Add WPTs for FileSystemHandle creation and deletion, a=testonly https://hg.mozilla.org/integration/autoland/rev/9411ef437ef1 [wpt PR 47388] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 131 Branch
You need to log in before you can comment on or make changes to this bug.