fune/testing/web-platform/tests
Masayuki Nakano 398b556e90 Bug 1877513 - Make HTMLEditor deletes only preceding lines of right child block if the range starts from start of a line r=m_kato
Currently, the editor of Gecko always unwraps first line of the right child
block after deleting selected range when the range starts in a parent block
and ends in a child block.  This behavior is almost same as the other browsers,
but the other browsers deletes only preceding lines of the right child block
(i.e., without unwrapping the first line of the right child block) if the range
starts from start of a preceding line, for example, when deleting
`<div>abc<br>[def<p>g]hi<br>jkl`, Gecko moves "hi" to the parent `<div>`,
but the other browsers keeps it in the child `<p>`.

For emulating this special handling, we need to touch 2 paths.

One is `Backspace` when selection is collapsed at start of the child block.  In
this case, only when the preceding line is empty, i.e., there are 2 line breaks
(either `<br>` or `\n` in `white-space: pre-*`), the following break should
be deleted, but the child block should not be touched.

The other is, deleting when selection is not collapsed or `Delete` when
selection is collapsed at immediately before the child block.  In the latter
case, `HTMLEditor::HandleDeleteSelection` extends `Selection` using
`nsFrameSelection`.  Then, handle it with same path as deleting non-collapsed
range.

The former is handled with `HandleDeleteLineBreak` and
`ComputeRangeToDeleteLineBreak`.  The latter is handled with
`HandleDeleteNonCollapsedRange` and `ComputeRangeToDeleteNonCollapsedRange`.
The new handlers use the `ComputeRangeToDelete*`.  Therefore, `beforeinput`
reports exactly same range from `getTargetRanges`.  However, existing paths
do not use same approach and this patch makes `HandleDeleteNonCollapsedRange`
fall it back to `HandleDeleteNonCollapsedRange`.  Therefore, some `if` checks
in `HandleDeleteNonCollapsedRange` are ugly, but I have no better idea to
implement this smarter.

Differential Revision: https://phabricator.services.mozilla.com/D207690
2024-04-27 00:36:26 +00:00
..
.github
.well-known
accelerometer
accessibility Bug 1889219 [wpt PR 45476] - [A11y] Only top down creation, a=testonly 2024-04-23 09:46:54 +00:00
accname Bug 1880418 [wpt PR 44600] - Remove undefined aria-label tests., a=testonly 2024-04-10 09:24:44 +00:00
acid
ambient-light
animation-worklet
annotation-model
annotation-protocol
annotation-vocab
apng
appmanifest Bug 1883558 [wpt PR 44928] - Add WPT for tabbed display_override, a=testonly 2024-03-14 08:38:48 +00:00
attribution-reporting Bug 1883405 [wpt PR 44904] - Support header error debug reports for Attribution Reporting API, a=testonly 2024-03-14 08:38:22 +00:00
audio-output Bug 1860492 - Stop using Theora files in WPT. r=jgraham 2024-04-04 15:02:41 +00:00
autoplay-policy-detection
avif
background-fetch
background-sync
badging
battery-status
beacon
bluetooth Bug 1889184 [wpt PR 45470] - Map tests to web-features for simple cases, a=testonly 2024-04-10 09:25:30 +00:00
browsing-topics
captured-mouse-events
clear-site-data
client-hints
clipboard-apis Bug 1858788 - Implement ClipboardItem.supports; r=nika 2024-04-18 22:32:54 +00:00
close-watcher Bug 1892677 [wpt PR 45818] - Close watchers: always fire cancel events, a=testonly 2024-04-25 13:29:12 +00:00
common Bug 1860492 - Stop using Theora files in WPT. r=jgraham 2024-04-04 15:02:41 +00:00
compat
compression Bug 1889292 [wpt PR 45483] - update tests which are generic across all TypedArrays for Float16Array, a=testonly 2024-04-15 08:50:13 +00:00
compute-pressure Bug 1891248 [wpt PR 45689] - compute pressure: Add web test for multiple calls to PressureObserver.observe(), a=testonly 2024-04-19 07:34:43 +00:00
conformance-checkers
console Bug 1885057 [wpt PR 45072] - Fix console.countReset manual test, a=testonly 2024-03-15 12:24:32 +00:00
contacts
content-dpr
content-index
content-security-policy Bug 1891779 [wpt PR 45742] - CSP scheme matching should be case-insensitive., a=testonly 2024-04-23 09:47:31 +00:00
contenteditable
cookie-deprecation-label
cookie-store
cookies Bug 1882918 [wpt PR 44875] - Workaround to deflake 3PC heuristics WPT., a=testonly 2024-03-14 08:38:02 +00:00
core-aam
cors
credential-management Bug 1892795 [wpt PR 45831] - [FedCM] Add configURL to IdentityCredential under the multi IDP API, a=testonly 2024-04-25 13:29:10 +00:00
css Bug 1612561 - Add a WPT for removing a sibling of sticky positioned element. r=layout-reviewers,emilio 2024-04-26 17:36:00 +00:00
custom-elements Bug 1889186 [wpt PR 45471] - Implement form-associated custom elements and their ElementInternals, a=testonly 2024-04-19 07:34:11 +00:00
delegated-ink
density-size-correction
deprecation-reporting
device-memory
device-posture Bug 1889184 [wpt PR 45470] - Map tests to web-features for simple cases, a=testonly 2024-04-10 09:25:30 +00:00
direct-sockets
docs Bug 1890260 [wpt PR 45602] - Add device posture-related commands to testdriver, a=testonly 2024-04-23 09:47:14 +00:00
document-picture-in-picture Bug 1885584 [wpt PR 45132] - [document pip] Add manual wpt test for hiding return to opener button, a=testonly 2024-03-21 08:36:11 +00:00
document-policy Bug 1860492 - Stop using Theora files in WPT. r=jgraham 2024-04-04 15:02:41 +00:00
dom Bug 1867155 - fix the web platform test for dom/xslt/large-cdata.html to zero out the margin-top of the h2 element, like its reference rendering does, to keep unrelated default browser styles from interfering with the test; r=emilio 2024-04-23 21:40:00 +00:00
domparsing
domxpath Bug 1888726 [wpt PR 45436] - Update U+212A handling case to not follow XPath Specification, a=testonly 2024-04-10 09:25:02 +00:00
dpub-aam Bug 1886896 [wpt PR 45263] - Adding "doc-credit" to DPUB ARIA roles, a=testonly 2024-04-23 09:47:24 +00:00
dpub-aria
ecmascript
editing Bug 1877513 - Make HTMLEditor deletes only preceding lines of right child block if the range starts from start of a line r=m_kato 2024-04-27 00:36:26 +00:00
element-timing
encoding Bug 1889292 [wpt PR 45483] - update tests which are generic across all TypedArrays for Float16Array, a=testonly 2024-04-15 08:50:13 +00:00
encoding-detection
encrypted-media
entries-api
event-timing Bug 1888256 [wpt PR 45386] - Event Timing: Treat Orphan Pointerup As Non-Interaction, a=testonly 2024-04-10 09:26:37 +00:00
eventsource
eyedropper
feature-policy
fenced-frame Bug 1891840 [wpt PR 45747] - Deflake attempt for fenced frame null config -> about:blank WPT, a=testonly 2024-04-23 09:47:11 +00:00
fetch Bug 1889075 - fix the WPT fetch/api/request/request-bad-port.any.js to not access example.org, but rather location.origin; r=valentin 2024-04-25 19:30:15 +00:00
file-system-access
FileAPI Bug 1889292 [wpt PR 45483] - update tests which are generic across all TypedArrays for Float16Array, a=testonly 2024-04-15 08:50:13 +00:00
fledge/tentative Bug 1891232 [wpt PR 45685] - Web platform tests for deprecatedRenderURLReplacements., a=testonly 2024-04-23 09:47:22 +00:00
focus Bug 1892121 [wpt PR 45773] - Make cross-origin-ancestor-activeelement-after-child-lose-focus.sub.html more robust., a=testonly 2024-04-23 09:47:23 +00:00
font-access
fonts Bug 1889884 [wpt PR 45569] - [text-spacing-trim] Support when required glyphs are missing, a=testonly 2024-04-15 08:50:16 +00:00
forced-colors-mode
fs Bug 1863765 - Part 1: Wrap WriteCallback in UnderlyingSinkAlgorithmsWrapper r=smaug 2024-04-04 17:50:10 +00:00
fullscreen
gamepad Bug 1890024 [wpt PR 45582] - [Gamepad] Implement manual WPT for playEffect, a=testonly 2024-04-19 07:34:00 +00:00
generic-sensor
geolocation-API Bug 1891386 [wpt PR 45700] - fix(geolocation): use 'alt' substitution for different origin, a=testonly 2024-04-23 09:46:40 +00:00
geolocation-sensor
graphics-aam
graphics-aria
gyroscope
hr-time
html Bug 1892320 [wpt PR 45789] - Fix anchor tests - just remove inset:auto assumption, a=testonly 2024-04-25 13:28:42 +00:00
html-aam Bug 1886903 [wpt PR 45265] - Apply an accessible name to form., a=testonly 2024-03-27 10:30:21 +00:00
html-longdesc
html-media-capture Bug 1889184 [wpt PR 45470] - Map tests to web-features for simple cases, a=testonly 2024-04-10 09:25:30 +00:00
https-upgrades
idle-detection
imagebitmap-renderingcontext
images
import-maps Bug 1889184 [wpt PR 45470] - Map tests to web-features for simple cases, a=testonly 2024-04-10 09:25:30 +00:00
IndexedDB Backed out changeset 133181fbd1ef (bug 1878148) for causing xpc crashes @ mozilla::dom::(anonymous namespace)::ensureCorrectDataCloneError 2024-04-26 00:52:35 +03:00
inert Bug 1884114 [wpt PR 44973] - [inert] The modal dialog and the fullscreen element should escape inertness of ancestor, a=testonly 2024-03-14 08:39:16 +00:00
infrastructure Bug 1885646 [wpt PR 45138] - Remove infrastructure/ metadata for a test that no longer exists, a=testonly 2024-03-21 08:36:15 +00:00
input-device-capabilities
input-events Bug 1891659 - Make AutoBlockElementsJoiner::DeleteTextAtStartAndEndOfRange() handle the case when the range in a text node r=m_kato 2024-04-25 03:47:41 +00:00
installedapp
interfaces Bug 1889371 [wpt PR 45496] - Sync interfaces/ with @webref/idl 3.47.0, a=testonly 2024-04-25 13:29:07 +00:00
intersection-observer Bug 1889184 [wpt PR 45470] - Map tests to web-features for simple cases, a=testonly 2024-04-10 09:25:30 +00:00
intervention-reporting
is-input-pending
jpegxl Bug 1889184 [wpt PR 45470] - Map tests to web-features for simple cases, a=testonly 2024-04-10 09:25:30 +00:00
js
js-self-profiling
keyboard-lock
keyboard-map
largest-contentful-paint Bug 1888156 [wpt PR 45376] - Fix LCP for transparent color texts, a=testonly 2024-04-10 09:26:56 +00:00
layout-instability
lifecycle
loading
long-animation-frame Bug 1890072 [wpt PR 45590] - Use typed promises/resolvers for ReadableStream and related classes, attempt #3, a=testonly 2024-04-23 09:47:39 +00:00
longtask-timing
magnetometer
managed
mathml Bug 1866418 [wpt PR 43334] - Add tests for ::first-letter and ::first-line with MathML, a=testonly 2024-04-19 07:34:12 +00:00
measure-memory
media Bug 1860492 - Stop using Theora files in WPT. r=jgraham 2024-04-04 15:02:41 +00:00
media-capabilities
media-playback-quality
media-source
mediacapture-extensions Bug 1890500 [wpt PR 45623] - Implement MediaStreamTrackAudioStats, a=testonly 2024-04-19 07:34:10 +00:00
mediacapture-fromelement
mediacapture-handle/identity
mediacapture-image
mediacapture-insertable-streams
mediacapture-record Bug 1892773 [wpt PR 45828] - Revert "Reland: Enable MP4 Muxer support.", a=testonly 2024-04-25 13:29:03 +00:00
mediacapture-region
mediacapture-streams Bug 1888308 [wpt PR 45398] - Reland "[Element Capture] add restrictTo WPT test", a=testonly 2024-04-19 07:33:57 +00:00
mediasession
merchant-validation
mimesniff Bug 1889454 [wpt PR 45506] - Revert "Reland "Minimize content type in resource timing"", a=testonly 2024-04-10 09:25:57 +00:00
mixed-content Bug 1860492 - Stop using Theora files in WPT. r=jgraham 2024-04-04 15:02:41 +00:00
mst-content-hint
navigation-api
navigation-timing
netinfo
network-error-logging
notifications Bug 1841841 - Add notification tag WPT test and replace old ones r=hsingh 2024-04-15 18:03:46 +00:00
old-tests
orientation-event Bug 1888679 [wpt PR 45429] - orientation-event: Remove @timvolodine from suggested_owners, a=testonly 2024-04-10 09:24:53 +00:00
orientation-sensor
page-lifecycle
page-visibility
paint-timing
parakeet
payment-handler
payment-method-basic-card Bug 1878800 [wpt PR 44409] - Revert "Remove shipping related things from payment-request (#28830)" , a=testonly 2024-04-10 09:25:16 +00:00
payment-method-id
payment-request Bug 1878800 [wpt PR 44409] - Revert "Remove shipping related things from payment-request (#28830)" , a=testonly 2024-04-10 09:25:16 +00:00
performance-timeline Bug 1888053 [wpt PR 45337] - [bfcache] Report null when iframes' atrributes are null, a=testonly 2024-04-10 09:25:07 +00:00
periodic-background-sync
permissions
permissions-policy Bug 1888874 [wpt PR 45443] - Payment Request: fix permission policy tests, a=testonly 2024-04-15 08:50:38 +00:00
permissions-request
permissions-revoke
picture-in-picture
png Bug 1884802 [wpt PR 44936] - add test for invalid ancillary after IDAT, a=testonly 2024-03-14 08:39:33 +00:00
pointerevents Bug 1892087 [wpt PR 45765] - Set Invalid DeviceProperties.uniqueId to 0, a=testonly 2024-04-25 13:29:02 +00:00
pointerlock Bug 1889184 [wpt PR 45470] - Map tests to web-features for simple cases, a=testonly 2024-04-10 09:25:30 +00:00
preload Bug 1888622 [wpt PR 45426] - Update supported-as-values.html: json should not be supported, a=testonly 2024-04-10 09:24:48 +00:00
presentation-api
print/crashtests
private-aggregation
private-click-measurement
proximity
push-api
quirks
referrer-policy
remote-playback Bug 1886324 [wpt PR 45210] - [Remote Playback] Fix watchAvailability WPT., a=testonly 2024-03-22 17:34:33 +00:00
reporting
requestidlecallback
resize-observer
resource-timing Bug 1889888 [wpt PR 45570] - Use "script" as the initiatorType in resource timing for modules, a=testonly 2024-04-19 07:33:48 +00:00
resources Bug 1892241 [wpt PR 45003] - Remove unused function., a=testonly 2024-04-23 09:47:34 +00:00
sanitizer-api
savedata
scheduler
screen-capture
screen-details
screen-orientation
screen-wake-lock Bug 1890244 [wpt PR 45599] - Screen Wake Lock: Add test for non-fully active doc, a=testonly 2024-04-15 08:50:37 +00:00
scroll-animations Bug 1889184 [wpt PR 45470] - Map tests to web-features for simple cases, a=testonly 2024-04-10 09:25:30 +00:00
scroll-to-text-fragment Bug 1892303 [wpt PR 45787] - Map assorted (unrelated) feature web-features, a=testonly 2024-04-23 09:47:44 +00:00
secure-contexts
secure-payment-confirmation
selection Bug 1889477 - Make ContentSubtreeIterator to always go into the shadow tree (if there's one) for getting the deepest child r=smaug 2024-04-04 14:32:04 +00:00
serial
server-timing Bug 1889184 [wpt PR 45470] - Map tests to web-features for simple cases, a=testonly 2024-04-10 09:25:30 +00:00
service-workers Bug 1892268 [wpt PR 45785] - Forward service-worker body size information to navigation timing, a=testonly 2024-04-23 09:47:54 +00:00
shadow-dom Bug 1892506 [wpt PR 45808] - Reland "Update focus-navigation WPTs to ShiftKey for backward navigation", a=testonly 2024-04-25 13:28:35 +00:00
shape-detection
shared-storage Bug 1892810 [wpt PR 45813] - [shared storage] For cross-origin worklet, don't expose error after prefs check, a=testonly 2024-04-25 13:29:04 +00:00
shared-storage-selecturl-limit
signed-exchange
soft-navigation-heuristics
speculation-rules Bug 1860492 - Stop using Theora files in WPT. r=jgraham 2024-04-04 15:02:41 +00:00
speech-api Bug 1892303 [wpt PR 45787] - Map assorted (unrelated) feature web-features, a=testonly 2024-04-23 09:47:44 +00:00
storage Bug 1890879 [wpt PR 45655] - Storage buckets: throw TypeError when window context is destroyed., a=testonly 2024-04-19 07:34:19 +00:00
storage-access-api Bug 1876504 - Also allow a same-origin initiated iframe to get storage access from its parent - r=anti-tracking-reviewers,timhuang 2024-04-15 15:28:11 +00:00
streams Bug 1879212 [wpt PR 44456] - Streams: test promise resolution order of async iterator, a=testonly 2024-04-25 13:28:45 +00:00
subapps
subresource-integrity
svg Bug 1891276 [wpt PR 45690] - Fix paint server transform for SVG context paints, a=testonly 2024-04-23 09:47:12 +00:00
svg-aam Bug 1886522 [wpt PR 45221] - Fix harness error in SVG AAM test, a=testonly 2024-04-10 09:24:41 +00:00
timing-entrytypes-registry
tools Bug 1893190 - Bump mozrunner version to 8.3.1. r=perftest-reviewers,jgraham,sparky 2024-04-25 15:56:41 +00:00
top-level-storage-access-api
touch-events
trust-tokens Bug 1890637 [wpt PR 45631] - Don't expect an undefined promise in a detached iframe, a=testonly 2024-04-19 07:33:51 +00:00
trusted-types Bug 1891035 [wpt PR 45667] - Fix use of stale index when a Trusted Type callback modifies attributes., a=testonly 2024-04-23 09:47:58 +00:00
ua-client-hints
uievents Bug 1886012 - part 2: Make OverOutElementsWrapper::DidDispatchOverAndEnterEvent() restore the last over target if properly connected r=smaug 2024-04-04 04:01:46 +00:00
upgrade-insecure-requests
url Bug 1891246 [wpt PR 45688] - URL: some additional host setter tests, a=testonly 2024-04-19 07:34:46 +00:00
urlpattern
user-timing
vibration
video-rvfc
virtual-keyboard
visual-viewport Bug 1889184 [wpt PR 45470] - Map tests to web-features for simple cases, a=testonly 2024-04-10 09:25:30 +00:00
wai-aria Bug 1885976 [wpt PR 45174] - Enable missed '.ex-generic' orphaned role tests, a=testonly 2024-04-10 09:24:52 +00:00
wasm Bug 1888320 [wpt PR 45401] - [wasm] esm integration test updates, a=testonly 2024-04-10 09:25:49 +00:00
web-animations Bug 1890368 [wpt PR 45612] - Short-circuit interpolation calculation for a static-valued property, a=testonly 2024-04-19 07:34:38 +00:00
web-bundle
web-locks
web-nfc
web-otp
web-share
webaudio Bug 1887036 [wpt PR 45278] - [webaudio] Fix AudioDestinationNode asserting numberOfOutputs = 1, a=testonly 2024-04-08 07:54:56 +00:00
webauthn
webcodecs Bug 1891897 - Validate WebCodecs encoder's flush promise handling r=media-playback-reviewers,padenot 2024-04-26 17:03:27 +00:00
WebCryptoAPI Bug 1889292 [wpt PR 45483] - update tests which are generic across all TypedArrays for Float16Array, a=testonly 2024-04-15 08:50:13 +00:00
webdriver Bug 1893608 - [wdspec] Add bidi network test for request bodysize r=webdriver-reviewers,Sasha 2024-04-26 16:15:31 +00:00
webgl
webgpu
webhid
webidl Bug 1887721 - Use correct order when defining length/name/prototype on legacy factory functions. r=saschanaz 2024-04-24 15:32:10 +00:00
webmessaging
webmidi Bug 1889184 [wpt PR 45470] - Map tests to web-features for simple cases, a=testonly 2024-04-10 09:25:30 +00:00
webnn Bug 1891904 [wpt PR 45755] - webnn: Migrate reshape validation tests to WPTs, a=testonly 2024-04-25 13:29:18 +00:00
webrtc Bug 1888632 [wpt PR 45427] - Move jitterBufferTarget tests to main WebRTC spec, a=testonly 2024-04-23 09:47:41 +00:00
webrtc-encoded-transform Bug 1892892 [wpt PR 45840] - Change constructor definition to reflect the latest spec, a=testonly 2024-04-25 13:29:17 +00:00
webrtc-extensions Bug 1888632 [wpt PR 45427] - Move jitterBufferTarget tests to main WebRTC spec, a=testonly 2024-04-23 09:47:41 +00:00
webrtc-ice
webrtc-identity
webrtc-priority
webrtc-stats
webrtc-svc
websockets Bug 1891455 [wpt PR 45711] - Bump pywebsocket3 to 4.0.2 from PyPI, a=testonly 2024-04-23 09:46:53 +00:00
webstorage
webtransport Bug 1863765 - Part 1: Wrap WriteCallback in UnderlyingSinkAlgorithmsWrapper r=smaug 2024-04-04 17:50:10 +00:00
webusb
webvr
webvtt
webxr
window-management
workers Bug 1889414 [wpt PR 45502] - Add tests for new Worker() and worker.postMessage() to happen in parallel, a=testonly 2024-04-19 07:33:44 +00:00
worklets
x-frame-options Bug 1891467 - Don't strip whitespace within X-Frame-Options values r=tschuster 2024-04-16 17:06:42 +00:00
xhr Bug 1889292 [wpt PR 45483] - update tests which are generic across all TypedArrays for Float16Array, a=testonly 2024-04-15 08:50:13 +00:00
.azure-pipelines.yml Bug 1889926 [wpt PR 45575] - Bump minimum version of Python from 3.7 to 3.8, a=testonly 2024-04-23 09:46:49 +00:00
.gitattributes
.gitignore
.mailmap
.taskcluster.yml
CODE_OF_CONDUCT.md
CODEOWNERS
CONTRIBUTING.md
LICENSE.md
lint.ignore Bug 1888891 [wpt PR 45447] - Add WPT for Compression Dictionary Transport, a=testonly 2024-04-10 09:25:36 +00:00
README.md
wpt Bug 1889926 [wpt PR 45575] - Bump minimum version of Python from 3.7 to 3.8, a=testonly 2024-04-23 09:46:49 +00:00
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!