gecko-dev/testing/web-platform/tests/native-file-system/native_FileSystemWritableFileStream-write-manual.https.tentative.html
Marijn Kruisselbrink 6ba92d9c51 Bug 1607934 [wpt PR 21096] - Add test automation for manual native file system tests., a=testonly
Automatic update from web-platform-tests
Add test automation for manual native file system tests.

This adds two new methods to testRunner:
 - getWritableDirectory, which returns the path to an an
   (empty, per test) temporary directory. And
 - setFilePathForMockFileDialog, which causes all file dialogs that
   are shown by the test to return the provided file path.

This is then used to automate the otherwise manual native file system
web platform tests that try to interact with the actual native native
file system implementation (as opposed to the sandboxed file system).

Also rename the filenames of these manual tests so the test system
actually correctly picks them up. Unfortunately not all of the tests
are currently passing, so this also checks in test expectations for
the failing tests.

Bug: 998917
Change-Id: I0c9100d39387bb211c3108c7566937af0e75db68
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1989369
Commit-Queue: Marijn Kruisselbrink <mek@chromium.org>
Reviewed-by: Robert Ma <robertma@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Peter Beverloo <peter@chromium.org>
Reviewed-by: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/master@{#732156}

--

wpt-commits: 02f8d31468a4646637a44c1dfde1f8e643724587
wpt-pr: 21096
2020-01-23 11:08:50 +00:00

10 lines
434 B
HTML

<!doctype html>
<meta charset=utf-8>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<script src="resources/test-helpers.js"></script>
<script src="resources/native-fs-test-helpers.js"></script>
<script src="script-tests/FileSystemWritableFileStream-write.js"></script>