gecko-dev/testing/web-platform/tests
Masayuki Nakano c7bdca40a7 Bug 1959016 - Add WPT to check attributes of a coalesced event of pointerrawupdate r=smaug
There is not test to check `getCoalescedEvents()` of `pointerrawupdate`
event so that this add tests for that.

Then, I find our bugs:
* `.button` value of `pointerrawupdate` event caused by a `mousemove`
* `.button` value of coalesced `pointermove` event caused by `mousemove`

This patch fixes these bugs too.

Differential Revision: https://phabricator.services.mozilla.com/D256224
2025-07-08 07:56:19 +00:00
..
.github Bug 1971802 [wpt PR 53024] - [GH Actions] Notify staging.wpt.fyi even if wpt.fyi fails, a=testonly 2025-06-23 09:35:30 +00:00
.well-known
accelerometer Bug 1966174 [wpt PR 52500] - Move sensor WPT tests to run in headless shell, 2025-05-20 12:01:19 +00:00
accessibility
accname Bug 1967287 [wpt PR 52640] - Counter values in alt text invalidation, 2025-05-23 19:12:15 +00:00
acid Bug 1972890 [wpt PR 53251] - Update tests for relaxed DOM name/attribute parsing, a=testonly 2025-06-23 09:44:26 +00:00
ai Bug 1973272 [wpt PR 53293] - Writing Assistance: Composite instance method abort signals with the create abort signal, a=testonly 2025-06-30 09:17:45 +00:00
ambient-light Bug 1966174 [wpt PR 52500] - Move sensor WPT tests to run in headless shell, 2025-05-20 12:01:19 +00:00
animation-worklet
annotation-model
annotation-protocol
annotation-vocab
apng Bug 1972026 [wpt PR 53119] - Fix rare flakiness in apng/animated-png-timeout.html, a=testonly 2025-06-23 09:40:03 +00:00
appmanifest
attribution-reporting
audio-output
autoplay-policy-detection
avif
background-fetch
background-sync
badging Bug 1965275 [wpt PR 52413] - Map Badging API tests to web-features, 2025-05-14 15:57:06 +00:00
battery-status
beacon
bluetooth Bug 1975088 [wpt PR 53522] - Bluetooth: Move WPT Running Content Shell to wpt_internal, a=testonly 2025-07-07 10:08:33 +00:00
browsing-topics
captured-mouse-events
clear-site-data Bug 1967474 - Clear-Site-Data: "cache": rename secondOrigin to crossSite to make variable name match its use r=anti-tracking-reviewers,emz 2025-06-24 10:11:48 +00:00
client-hints Bug 1969008 [wpt PR 52830] - Add WPT mappings for ua-client-hints WebDXFeature, 2025-06-02 09:12:44 +00:00
clipboard-apis Bug 1967898 [wpt PR 52714] - [Clipboardchange] - Event handler contains native mime types, 2025-05-23 19:14:57 +00:00
close-watcher Bug 1965904 - Extend timeouts for closewatcher dialog iframes test r=dom-core,jjaschke 2025-05-19 11:16:00 +00:00
common Bug 1973009 [wpt PR 53271] - WPT: fix overuse of PREFETCH_PROXY_BYPASS_HOST, a=testonly 2025-06-30 09:18:05 +00:00
compat Bug 1965771 [wpt PR 52443] - [flex] Disable flex-wrap for -webkit-box., 2025-05-14 15:58:25 +00:00
compression
compute-pressure Bug 1972721 [wpt PR 53224] - compute pressure: Consolidate duplicate updates test, a=testonly 2025-06-23 09:43:35 +00:00
conformance-checkers
console
contacts
container-timing Bug 1969207 [wpt PR 52844] - ContainerTiming: introduce the containertiming-ignore attribute, 2025-06-02 09:13:30 +00:00
content-dpr
content-index
content-security-policy Bug 1972203 [wpt PR 53148] - Fix skipping CSP checks for styles when cloning nodes, a=testonly 2025-07-07 10:05:50 +00:00
contenteditable Bug 1972136 [wpt PR 53071] - Map contenteditable="plaintext-only" test to web-features, a=testonly 2025-06-23 09:38:14 +00:00
cookie-deprecation-label
cookie-store Bug 1974082 [wpt PR 53394] - __HostHttp- cookie prefix, a=testonly 2025-07-04 08:44:32 +00:00
cookies Bug 1974828 [wpt PR 53436] - Turn Http prefix tests to non-tentative, with predictable failure messages, a=testonly 2025-07-07 10:06:29 +00:00
core-aam
cors
credential-management
css Bug 1975833 - Fix kernelUnitLength calculation r=emilio 2025-07-08 06:17:04 +00:00
custom-elements Bug 1974944 [wpt PR 53505] - Add a couple of test cases to call attachShadow with null customElementRegistry., a=testonly 2025-07-07 10:08:54 +00:00
delegated-ink
density-size-correction
deprecation-reporting
device-bound-session-credentials Bug 1974766 [wpt PR 53445] - Add WPT for change of session id on refresh, a=testonly 2025-07-07 10:05:12 +00:00
device-memory
device-posture
digital-credentials Bug 1974159 [wpt PR 53089] - Digital Credentials: Add userAgentAllowsProtocol method, a=testonly 2025-07-04 08:44:57 +00:00
direct-sockets
docs Bug 1973555 [wpt PR 53204] - Add test_driver.bidi.bluetooth commands and event, a=testonly 2025-07-04 08:40:26 +00:00
document-picture-in-picture
document-policy
dom Bug 1974775 [wpt PR 53455] - Fix DOM Parts parser crash, a=testonly 2025-07-07 10:05:33 +00:00
domparsing
domxpath Bug 1969783 [wpt PR 52891] - XPath: implement lang() and id() core functions, 2025-06-06 08:43:15 +00:00
dpub-aam
dpub-aria
ecmascript
editing Bug 1975691 [wpt PR 53591] - [Test case] CSS var resolution on copy or drag., a=testonly 2025-07-07 10:11:57 +00:00
element-timing
encoding
encoding-detection
encrypted-media
entries-api
event-timing
eventsource
eyedropper
feature-policy
fedcm Bug 1973563 [wpt PR 53330] - [FedCM] Adding helper functions to reduce timeout, a=testonly 2025-07-04 08:45:17 +00:00
fenced-frame
fetch Bug 1972052 [wpt PR 53090] - Improve WPT coverage for Compression Dictionary Transport, a=testonly 2025-06-23 09:37:26 +00:00
file-system-access Bug 1965266 [wpt PR 52408] - Map OPFS tests to web-features, 2025-05-14 15:57:20 +00:00
FileAPI
fledge/tentative
focus Bug 53579 - Remove mFirstBlurEvent from nsFocusManager; r=sefeng 2025-06-08 20:26:52 +00:00
font-access
fonts Bug 1975311 [wpt PR 53547] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=285959, a=testonly 2025-07-07 10:10:32 +00:00
forced-colors-mode
fs
fullscreen Bug 1947460 [wpt PR 50630] - Test removing a sibling element when both are fullscreen, a=testonly 2025-06-19 08:18:01 +00:00
gamepad
generic-sensor Bug 1966174 [wpt PR 52500] - Move sensor WPT tests to run in headless shell, 2025-05-20 12:01:19 +00:00
geolocation Bug 1966884 [wpt PR 52586] - geolocation: Re-enable some geolocation WPT tests, 2025-05-22 10:40:11 +00:00
geolocation-sensor
gif Bug 1895712. Reset fields that come from the graphics control extension after each frame of a gif. r=gfx-reviewers,jnicol 2025-06-16 23:16:48 +00:00
graphics-aam
graphics-aria
gyroscope Bug 1966174 [wpt PR 52500] - Move sensor WPT tests to run in headless shell, 2025-05-20 12:01:19 +00:00
hr-time
hsts
html Bug 1975739 [wpt PR 53596] - [list-style-position-quirk] Change <li> to match the spec, a=testonly 2025-07-07 10:12:25 +00:00
html-aam Bug 1967670 [wpt PR 44934] - Create roles-minimum.tentative.html, 2025-05-23 19:12:59 +00:00
html-longdesc
html-media-capture
https-upgrades
idle-detection
imagebitmap-renderingcontext
images Bug 1970361 [wpt PR 52955] - Followup for Ensure createImageBitmap resolves in a task , a=testonly 2025-06-19 08:15:56 +00:00
import-maps
IndexedDB Bug 1975043 [wpt PR 53514] - [IndexedDB] Add WPT coverage for get all operations with invalid keys, a=testonly 2025-07-07 10:08:15 +00:00
inert
infrastructure Bug 1974812 [wpt PR 53474] - Enable infrastructure tests for partitioned cookies for Firefox, a=testonly 2025-07-07 10:06:25 +00:00
input-device-capabilities
input-events
installedapp
interfaces Bug 1975427 [wpt PR 53569] - Sync interfaces/ with @webref/idl 3.65.3, a=testonly 2025-07-07 10:11:43 +00:00
intersection-observer
intervention-reporting
is-input-pending
jpegxl
js
js-self-profiling Bug 1971799 [wpt PR 53044] - Map profiler tests to web-features, a=testonly 2025-06-23 09:35:23 +00:00
keyboard-lock
keyboard-map
largest-contentful-paint Bug 1974039 [wpt PR 53142] - [LCP WPT] Fix test expectation in background-image-set-image.html, a=testonly 2025-07-04 08:43:53 +00:00
layout-instability Bug 1967772 [wpt PR 52696] - Map the layout-instability tests to the corresponding web-features ID, 2025-05-30 08:13:02 +00:00
loading
long-animation-frame
longtask-timing
magnetometer Bug 1966174 [wpt PR 52500] - Move sensor WPT tests to run in headless shell, 2025-05-20 12:01:19 +00:00
managed
mathml Bug 1966668 - Wait for font loading where needed in mathml/presentation-markup/mrow tests. r=layout-reviewers,emilio 2025-05-20 21:40:30 +00:00
measure-memory
media
media-capabilities
media-playback-quality Bug 1967311 [wpt PR 52645] - Map getVideoPlaybackQuality() tests to web-features, 2025-05-23 19:13:32 +00:00
media-source
mediacapture-extensions
mediacapture-fromelement Bug 1560936 - For getSettings make all MediaStreamTrackSources populate width and height as appropriate. r=jib,bwc 2025-07-01 20:36:46 +00:00
mediacapture-handle/identity
mediacapture-image
mediacapture-insertable-streams
mediacapture-record
mediacapture-region
mediacapture-streams
mediasession
merchant-validation
mimesniff
mixed-content
mst-content-hint
nav-tracking-mitigations
navigation-api Bug 1974199 - Add WPT tests for checking multiple sync navigations. r=smaug 2025-06-26 12:11:47 +00:00
navigation-timing
netinfo
network-error-logging Bug 1967900 [wpt PR 52715] - NEL: Assert that the browser has some basic support before testing., 2025-06-06 08:42:30 +00:00
notifications Bug 1961846 - Use UTF8 for notification icon URLs r=asuth 2025-06-26 16:54:03 +00:00
old-tests
orientation-event
orientation-sensor Bug 1966174 [wpt PR 52500] - Move sensor WPT tests to run in headless shell, 2025-05-20 12:01:19 +00:00
page-lifecycle Bug 1966556 [wpt PR 52559] - Merge the page-lifecycle tests into one unique top-level directory., 2025-05-22 10:38:15 +00:00
page-visibility
paint-timing Bug 1969912 [wpt PR 52901] - (Partially) fix paint-timing IDL harness test., 2025-06-06 08:43:00 +00:00
parakeet
partitioned-popins
payment-handler
payment-method-basic-card
payment-method-id
payment-request
performance-timeline
periodic-background-sync
permissions Bug 1949610 [wpt PR 50850] - Permissions: add missing tests, a=testonly 2025-06-30 09:18:54 +00:00
permissions-policy
permissions-request
permissions-revoke
picture-in-picture
png
pointerevents Bug 1959016 - Add WPT to check attributes of a coalesced event of pointerrawupdate r=smaug 2025-07-08 07:56:19 +00:00
pointerlock
preload Bug 1974845 [wpt PR 53427] - DOM: Fix link element processing model and attribute mutations, a=testonly 2025-07-07 10:06:36 +00:00
presentation-api
print/crashtests
private-aggregation
private-click-measurement
proximity
push-api
quirks
referrer-policy
remote-playback Bug 1965268 [wpt PR 52409] - Map Remote Playback API tests to web-features, 2025-05-14 15:57:16 +00:00
reporting Bug 1976081 - Fix reporting/resources/report.py missing CORS header r=smaug 2025-07-07 22:20:35 +00:00
requestidlecallback Bug 1966439 [wpt PR 52440] - Map requestIdleCallback() tests to web-features, 2025-05-20 12:03:33 +00:00
resize-observer Bug 1967762 - Fix and test resizeobserver interaction with CSS zoom. r=jfkthame,layout-reviewers,dshin 2025-05-31 18:18:05 +00:00
resource-timing Bug 1974405 [wpt PR 53419] - [WPT] Fix test document-initiated.html, a=testonly 2025-07-04 08:46:00 +00:00
resources Bug 1975389 [wpt PR 53560] - Fix single_page typo in comment, a=testonly 2025-07-07 10:10:53 +00:00
sanitizer-api Bug 1966032 - Test comments/dataAttributes default difference between Document.parseHTML and Document.parseHTMLUnsafe. r=emilio 2025-05-16 11:26:13 +00:00
savedata
scheduler Bug 1968254 [wpt PR 52753] - scheduler.yield: Restrict inheritance to originating context, 2025-05-27 08:56:45 +00:00
screen-capture
screen-details
screen-orientation Bug 1972742 - [wpt] To prevent timeouts fix the clean-up of created iframes in /screen-orientation/ tests. r=m_kato 2025-06-30 08:04:24 +00:00
screen-wake-lock Bug 1972137 [wpt PR 53070] - Map screen wake lock tests to web-features, a=testonly 2025-06-23 09:38:17 +00:00
scroll-animations Bug 1975776 [wpt PR 53601] - [animation-trigger] Parse timeline-trigger-timeline, a=testonly 2025-07-07 10:12:47 +00:00
scroll-to-text-fragment
secure-contexts
secure-payment-confirmation
selection Bug 1974970 - Make GetNextPrevLineBlockFrame() guarantee that it won't enter into anonymous subtree r=emilio 2025-07-07 08:48:08 +00:00
serial
server-timing
service-workers Bug 1970359 [wpt PR 52953] - Add WaitUntil check for AddRoutes, a=testonly 2025-06-19 08:16:09 +00:00
shadow-dom Bug 1974709 [wpt PR 53467] - Add Test for Element.attachShadow using a ShadowRoot, a=testonly 2025-07-07 10:07:22 +00:00
shape-detection
shared-storage
shared-storage-selecturl-limit
signed-exchange
soft-navigation-heuristics Bug 1974853 [wpt PR 53486] - [soft navs ] Re-add contracted-image.html, with fixes, a=testonly 2025-07-07 10:06:53 +00:00
speculation-rules Bug 1973009 [wpt PR 53271] - WPT: fix overuse of PREFETCH_PROXY_BYPASS_HOST, a=testonly 2025-06-30 09:18:05 +00:00
speech-api Bug 1971794 [wpt PR 53052] - Unprefix the Web Speech API, a=testonly 2025-06-23 09:35:13 +00:00
storage Bug 1966731 [wpt PR 52571] - Revert "QuotaExceededError: Update to a DOMException derived interface", 2025-05-22 10:41:02 +00:00
storage-access-api
streams Bug 1965759 [wpt PR 52419] - SuppressDetachCheck() for a promise created in WritableStream::Close(), 2025-05-14 15:57:45 +00:00
subapps
subresource-integrity Bug 1974247 - Add styles to Integrity-Policy WPT. r=tschuster 2025-07-04 21:46:49 +00:00
svg Bug 1975698 [wpt PR 53593] - [SVG] Fix SVG <ellipse> rendering for negative rx/ry values, a=testonly 2025-07-07 10:12:04 +00:00
svg-aam
timing-entrytypes-registry
tools Bug 1975084 [wpt PR 53520] - Bump pillow from 11.1.0 to 11.3.0 in /tools, a=testonly 2025-07-07 10:11:00 +00:00
top-level-storage-access-api
touch-events Bug 1974751 [wpt PR 53428] - Remove DCHECK that was possible to hit, a=testonly 2025-07-04 08:47:10 +00:00
trust-tokens
trusted-types Bug 1973163 - Fix issues with violation/exception reports for trusted-types-navigation.html r=smaug 2025-06-30 21:13:58 +00:00
ua-client-hints Bug 1969008 [wpt PR 52830] - Add WPT mappings for ua-client-hints WebDXFeature, 2025-06-02 09:12:44 +00:00
uievents Bug 1969907 [wpt PR 52899] - Ensure test finish when focus-management-expectations.html fails, a=testonly 2025-06-19 08:14:01 +00:00
upgrade-insecure-requests
url Bug 1974790 [wpt PR 53458] - URL: add host setter tests for empty host with port, a=testonly 2025-07-07 10:05:57 +00:00
urlpattern Bug 1972894 [wpt PR 53210] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=294596, a=testonly 2025-06-23 09:44:05 +00:00
user-timing
vibration
video-rvfc
viewport
viewport-segments
virtual-keyboard
visual-viewport
wai-aria
wasm Bug 1974703 [wpt PR 53461] - Update Wasm tests, a=testonly 2025-07-07 10:06:01 +00:00
web-animations Bug 1974043 [wpt PR 53388] - Rename animation-trigger-type to animation-trigger-behavior, a=testonly 2025-07-04 08:44:18 +00:00
web-bundle
web-locks
web-nfc
web-otp
web-share
webaudio Bug 1975384 [wpt PR 53561] - [webaudio] Migrate audionode-connect-method-chaining.html to testharness, a=testonly 2025-07-07 10:10:43 +00:00
webauthn
webcodecs Bug 1973870 [wpt PR 53374] - Fix I444P10 VideoFrame construction and extend test coverage, a=testonly 2025-07-04 08:43:11 +00:00
WebCryptoAPI
webdriver Bug 1976004 - [wdspec] Support multiple permissions settings in "set_geolocation_permission" fixture. r=webdriver-reviewers,whimboo 2025-07-08 06:28:00 +00:00
webgl
webgpu
webhid
webidl Bug 1966731 [wpt PR 52571] - Revert "QuotaExceededError: Update to a DOMException derived interface", 2025-05-22 10:41:02 +00:00
webmessaging
webmidi
webnn Bug 1975214 [wpt PR 53535] - webnn: update tolerance definitions for QDQ subgraph tests, a=testonly 2025-07-07 10:09:54 +00:00
webrtc Bug 1560936 - For getSettings make all MediaStreamTrackSources populate width and height as appropriate. r=jib,bwc 2025-07-01 20:36:46 +00:00
webrtc-encoded-transform Bug 1970189 [wpt PR 52931] - [EncodedTransform] Add web test for audioLevel transmission, a=testonly 2025-06-19 08:14:31 +00:00
webrtc-extensions
webrtc-ice
webrtc-identity
webrtc-priority
webrtc-stats Bug 1967577 - update rtp-stats-creation.html WPT outbound-rtp timing expectations;r=dbaker,jib 2025-06-26 03:21:04 +00:00
webrtc-svc
websockets Bug 1972000 [wpt PR 53114] - wpt for DCHECK in WebSocketChannelImpl::OnWritable(), a=testonly 2025-06-23 09:39:29 +00:00
webstorage Bug 1975405 [wpt PR 53564] - Do not test storage object overrides desc.[[Configurable]], a=testonly 2025-07-07 10:11:04 +00:00
webtransport
webusb
webvr
webvtt
webxr Bug 1967327 [wpt PR 52648] - Remove unnecessary isCpuOptimized parameter/generators, 2025-05-22 10:44:10 +00:00
window-management
workers Bug 1969200 [wpt PR 52843] - Add WPT for SharedWorker extendedLifetime, 2025-06-02 09:13:21 +00:00
worklets
x-frame-options
xhr Bug 1967344 [wpt PR 52650] - WPT: Don't pass Date objects to comparison assertions, 2025-05-22 10:44:17 +00:00
.azure-pipelines.yml Bug 1971771 [wpt PR 53030] - Move Safari PR jobs to GH Actions, a=testonly 2025-06-23 09:34:32 +00:00
.gitattributes
.gitignore
.mailmap
.taskcluster.yml
CODE_OF_CONDUCT.md
CODEOWNERS
CONTRIBUTING.md
LICENSE.md
lint.ignore Bug 1975311 [wpt PR 53547] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=285959, a=testonly 2025-07-07 10:10:32 +00:00
README.md
wpt
wpt.py

The web-platform-tests Project

Taskcluster CI Status documentation manifest Python 3

The web-platform-tests Project is a cross-browser test suite for the Web-platform stack. Writing tests in a way that allows them to be run in all browsers gives browser projects confidence that they are shipping software that is compatible with other implementations, and that later implementations will be compatible with their implementations. This in turn gives Web authors/developers confidence that they can actually rely on the Web platform to deliver on the promise of working across browsers and devices without needing extra layers of abstraction to paper over the gaps left by specification editors and implementors.

The most important sources of information and activity are:

  • github.com/web-platform-tests/wpt: the canonical location of the project's source code revision history and the discussion forum for changes to the code
  • web-platform-tests.org: the documentation website; details how to set up the project, how to write tests, how to give and receive peer review, how to serve as an administrator, and more
  • wpt.live: a public deployment of the test suite, allowing anyone to run the tests by visiting from an Internet-enabled browser of their choice
  • wpt.fyi: an archive of test results collected from an array of web browsers on a regular basis
  • Real-time chat room: the wpt:matrix.org matrix channel; includes participants located around the world, but busiest during the European working day.
  • Mailing list: a public and low-traffic discussion list
  • RFCs: a repo for requesting comments on substantial changes that would impact other stakeholders or users; people who work on WPT infra are encouraged to watch the repo.

If you'd like clarification about anything, don't hesitate to ask in the chat room or on the mailing list.

Setting Up the Repo

Clone or otherwise get https://github.com/web-platform-tests/wpt.

Note: because of the frequent creation and deletion of branches in this repo, it is recommended to "prune" stale branches when fetching updates, i.e. use git pull --prune (or git fetch -p && git merge).

Running the Tests

See the documentation website and in particular the system setup for running tests locally.

Command Line Tools

The wpt command provides a frontend to a variety of tools for working with and running web-platform-tests. Some of the most useful commands are:

  • wpt serve - For starting the wpt http server
  • wpt run - For running tests in a browser
  • wpt lint - For running the lint against all tests
  • wpt manifest - For updating or generating a MANIFEST.json test manifest
  • wpt install - For installing the latest release of a browser or webdriver server on the local machine.
  • wpt serve-wave - For starting the wpt http server and the WAVE test runner. For more details on how to use the WAVE test runner see the documentation.

Windows Notes

On Windows wpt commands must be prefixed with python or the path to the python binary (if python is not in your %PATH%).

python wpt [command]

Alternatively, you may also use Bash on Ubuntu on Windows in the Windows 10 Anniversary Update build, then access your windows partition from there to launch wpt commands.

Please make sure git and your text editor do not automatically convert line endings, as it will cause lint errors. For git, please set git config core.autocrlf false in your working tree.

Publication

The master branch is automatically synced to wpt.live and w3c-test.org.

Contributing

Save the Web, Write Some Tests!

Absolutely everyone is welcome to contribute to test development. No test is too small or too simple, especially if it corresponds to something for which you've noted an interoperability bug in a browser.

The way to contribute is just as usual:

  • Fork this repository (and make sure you're still relatively in sync with it if you forked a while ago).
  • Create a branch for your changes: git checkout -b topic.
  • Make your changes.
  • Run ./wpt lint as described above.
  • Commit locally and push that to your repo.
  • Create a pull request based on the above.

Issues with web-platform-tests

If you spot an issue with a test and are not comfortable providing a pull request per above to fix it, please file a new issue. Thank you!