haikuwebkit/LayoutTests/fast/forms/file
Chris Dumez a4509d3c16 Port Filesystem::fileMetadata() & Filesystem::getFileModificationTime() to std::filesystem
https://bugs.webkit.org/show_bug.cgi?id=225362

Reviewed by Darin Adler.

Source/JavaScriptCore:

Build fix.

* Configurations/JavaScriptCore.xcconfig:

Source/WTF:

Port Filesystem::fileMetadata() & Filesystem::getFileModificationTime() to std::filesystem
and get rid of platform-specific implementations.

* wtf/FileSystem.cpp:
(WTF::FileSystemImpl::toWallTime):
(WTF::FileSystemImpl::getFileModificationTime):
(WTF::FileSystemImpl::fileMetadata):
* wtf/FileSystem.h:
* wtf/glib/FileSystemGlib.cpp:
* wtf/posix/FileSystemPOSIX.cpp:
* wtf/win/FileSystemWin.cpp:

Tools:

Add API test coverage.

* TestWebKitAPI/Tests/WTF/FileSystem.cpp:
(TestWebKitAPI::TEST_F):
(TestWebKitAPI::runGetFileModificationTimeTest):

LayoutTests:

Add 0 to the list of allowed values for the size of a directory in the data transfer API as the result
is implementation-specific. On macOS, we used to return 256 on apfs and 272 on HFS+. We now return 0,
which is what Firefox does.

* editing/pasteboard/entries-api/datatransfer-items-drop-getAsEntry-expected.txt:
* editing/pasteboard/entries-api/datatransfer-items-drop-getAsEntry.html:
* fast/forms/file/entries-api/drag-folder-webkitEntries-expected.txt:
* fast/forms/file/entries-api/drag-folder-webkitEntries.html:


Canonical link: https://commits.webkit.org/237444@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@277158 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-05-07 05:00:39 +00:00
..
entries-api Port Filesystem::fileMetadata() & Filesystem::getFileModificationTime() to std::filesystem 2021-05-07 05:00:39 +00:00
resources
disabling-file-busy-loop-expected.txt
disabling-file-busy-loop.html
display-none-upload-button-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
display-none-upload-button.html
file-appearance-transform-no-effects-expected.html
file-appearance-transform-no-effects.html
file-crash-by-display-none-button-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
file-crash-by-display-none-button.html
file-input-capture-expected.txt
file-input-capture.html
file-input-change-event-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
file-input-change-event.html
file-input-direction.html
file-input-disabled.html
file-input-hit-test-expected.txt
file-input-hit-test.html
file-input-pressed-state-expected.txt
file-input-pressed-state.html
file-input-reset-expected.html
file-input-reset-using-open-panel-expected.html
file-input-reset-using-open-panel.html
file-input-reset.html
file-input-type-detached-on-change-expected.txt
file-input-type-detached-on-change.html
file-input-user-selection-events-expected.txt
file-input-user-selection-events.html
file-input-webkitdirectory-icon-expected.html
file-input-webkitdirectory-icon.html
file-reset-in-change-expected.html
file-reset-in-change-using-open-panel-expected.html
file-reset-in-change-using-open-panel-with-icon-expected.html
file-reset-in-change-using-open-panel-with-icon.html
file-reset-in-change-using-open-panel.html
file-reset-in-change.html
file-setrangetext-expected.txt
file-setrangetext.html
file-style-inheritance-expected.txt
file-style-inheritance.html
file-vertical-padding-border-expected.html
file-vertical-padding-border.html
get-file-upload-expected.txt
get-file-upload-using-open-panel-expected.txt
get-file-upload-using-open-panel.html
get-file-upload.html
hidden-input-file-expected.html
hidden-input-file.html
input-file-label-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
input-file-label.html
input-file-not-open-without-gesture-expected.txt
input-file-not-open-without-gesture.html
input-file-re-render.html
input-file-value-expected.txt
input-file-value-using-open-panel-expected.txt
input-file-value-using-open-panel.html
input-file-value.html
input-file-write-files-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
input-file-write-files-using-open-panel-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
input-file-write-files-using-open-panel.html
input-file-write-files.html
intrinsic-min-width-overrides-width-expected.html
intrinsic-min-width-overrides-width.html
open-file-panel-crash-expected.txt
open-file-panel-crash.html
open-file-panel-expected.txt
open-file-panel.html
recover-file-input-in-unposted-form-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
recover-file-input-in-unposted-form.html
selected-files-from-history-state-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
selected-files-from-history-state.html
sibling-of-disabled-file-input-expected.txt
sibling-of-disabled-file-input.html