Skip to content
Snippets Groups Projects
user avatar
Raphael Kubo da Costa authored
Bug 1812348 [wpt PR 38171] - wake lock: Move tests in web_tests/wake-lock to either wpt_internal or external/wpt., a=testonly

Automatic update from web-platform-tests
wake lock: Move tests in web_tests/wake-lock to either wpt_internal or external/wpt.

We had Wake Lock-related tests in 3 different directories:
external/wpt/screen-wake-lock/, wake-lock/, and
wpt_internal/system-wake-lock.

Get rid of the wake-lock/ directory by moving the tests in it to the
other two directories:
* wakelock-document-hidden.https.html: Move it to WPT. It was not there
  because it depended on setMainWindowHidden(). WPT has since added
  support for controlling page visibility via
  test_driver.minimize_window() and test_driver.set_window_rect(), so we
  can use them via window_state_context().
  While here, merge some bits and pieces from WPT's
  wakelock-document-hidden-manual.https.html and remove the manual test,
  both tests were essentially testing the same thing.
* wakelockpermissiondescriptor.https.html: Move to
  wpt_internal/system-wake-lock/, as it was just checking if a system
  wake lock has a proper permission descriptor. While at it, turn it
  into a .js test to make it shorter.

Change-Id: I4a524c1fcafbb44c4a063ede81e616a60115a0db
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4194594


Auto-Submit: Raphael Kubo Da Costa <raphael.kubo.da.costa@intel.com>
Reviewed-by: default avatarReilly Grant <reillyg@chromium.org>
Reviewed-by: default avatarSylvain Defresne <sdefresne@chromium.org>
Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1097304}

--

wpt-commits: 7423999e37650128670a940dca4ad35ac4f71b67
wpt-pr: 38171
763eff81
History
An explanation of the Firefox Source Code Directory Structure and links to
project pages with documentation can be found at:

    https://firefox-source-docs.mozilla.org/contributing/directory_structure.html

For information on how to build Firefox from the source code and create the patch see:

    https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html

If you have a question about developing Firefox, and can't find the solution
on https://firefox-source-docs.mozilla.org/, you can try asking your question on Matrix at chat.mozilla.org in `Introduction` (https://chat.mozilla.org/#/room/#introduction:mozilla.org) channel.


Nightly development builds can be downloaded from:

    https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
            - or -
    https://www.mozilla.org/firefox/channel/desktop/#nightly

Keep in mind that nightly builds, which are used by Firefox developers for
testing, may be buggy.