Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test automation for manual native file system tests. #21096

Merged
merged 1 commit into from Jan 15, 2020

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Jan 8, 2020

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}

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-1989369 branch 2 times, most recently from 4d4efad to 4596fc7 Compare January 15, 2020 19:52
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}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants