Files
sousa-gecko/testing/web-platform/tests/web-extensions/browser.storage.extension.js
T
Justin Lulejian 1227a53070 Bug 2052941 [wpt PR 61097] - [Extensions] Add WPT tests for idle and storage APIs., a=testonly
Automatic update from web-platform-tests
[Extensions] Add WPT tests for idle and storage APIs.

Previously, there were no Web Platform Tests (WPT) for the chrome.idle
(browser.idle) and chrome.storage (browser.storage) APIs in the
web-extensions suite.

This CL adds basic WPT tests for these two APIs to verify their presence
and basic functionality.

We implemented:
- browser.idle.extension.js: Tests queryState,
  setDetectionInterval, onStateChanged listener, and error cases.
- browser.storage.extension.js: Tests local set, get, getKeys,
  getBytesInUse, remove, clear, setAccessLevel, onChanged, and
  error cases.

The tests are added to TestExpectations as [ Failure ] in chromium since
pending changes in web-extensions-helper.js (introduced in
github.com/web-platform-tests/wpt/pull/60872) have not been synced to
chromium/src due to a temporary WPT importer error (see
crbug.com/528388519).

TAG=agy
CONV=13c67052-fc49-4c0d-808e-ae6eaf3802cd

Bug: 527385398
Change-Id: Ic99b35b99d65208905772c7f4463d0f487000845
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8027352
Reviewed-by: Oliver Dunk <oliverdunk@chromium.org>
Auto-Submit: Justin Lulejian <jlulejian@chromium.org>
Commit-Queue: Justin Lulejian <jlulejian@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1657315}

--

wpt-commits: d32b11ab972d7384a2c46c128e9b0810b1e85183
wpt-pr: 61097
2026-07-12 11:55:20 +00:00

2 lines
49 B
JavaScript

runTestsWithWebExtension('/resources/storage/');