fune/testing/web-platform/tests
Masayuki Nakano 18e444a223 Bug 1697249 - Stop creating <span> element for keeping same style as the link when the link will be unlinked r=m_kato
When typing at edge of a link, editor splits the link element at the edge (i.e.,
creating an empty link element).  Then, unlink the new link element (i.e.,
clearing the "link style").  At this time, `class` attribute and `style`
attribute are cloned to new `<span>` element for keeping the original style.
However, in this case, other browsers discard the specified style of the link.

On the other hand, when unlinking a link with `execCommand("unlink")`, the
other browsers keep specified style coming from `style` attribute.

Therefore, this patch adds new state to `PropItem`, which indicates whether
the `class` and `style` attribute should be cloned or discarded.  And then,
when preparing for inserting text, this patch makes it pass to the utility
method.

For better compatibility, we should stop cloning `class` attribute, but not
in this bug because this patch should be minimized for requesting uplift to
beta channel.

Differential Revision: https://phabricator.services.mozilla.com/D107801
2021-03-11 07:19:33 +00:00
..
.github Bug 1692515 [wpt PR 27612] - [python3] Fix regen_certs.yml for the python3 migration, a=testonly 2021-02-16 12:57:37 +00:00
.well-known Bug 1680134 [wpt PR 26708] - [blinkpy] Switch to run WPT subcommands using Python3, a=testonly 2020-12-17 13:30:46 +00:00
accelerometer
accname
acid
ambient-light
animation-worklet
annotation-model
annotation-protocol
annotation-vocab
apng
appmanifest Bug 1692689 [wpt PR 27620] - [appmanifest] Add CORS/CSP tests for icons and shortcuts, a=testonly 2021-02-22 16:08:13 +00:00
audio-output
background-fetch
BackgroundSync Bug 1683680 [wpt PR 26970] - Add/Fix META.yml files to ease specs to WPT mapping, a=testonly 2020-12-22 17:26:21 +00:00
badging Bug 1683833 [wpt PR 26983] - Add further META.yml files to ease specs to WPT mapping, a=testonly 2020-12-23 10:43:18 +00:00
battery-status
beacon Bug 1691099 [wpt PR 27512] - Reorganize and augment beacon wpt, a=testonly 2021-02-12 12:12:26 +00:00
bluetooth Bug 1685817 [wpt PR 27116] - Migrate WebBluetooth WPT to Mojo JS modules, a=testonly 2021-01-19 13:23:02 +00:00
clear-site-data
client-hints Bug 1683178 [wpt PR 26945] - [UA-CH] Rename Accept-CH tokens, a=testonly 2021-02-01 17:35:45 +00:00
clipboard-apis Bug 1692804 [wpt PR 27627] - Add manual wpt test for clipboard files, a=testonly 2021-03-08 15:13:00 +00:00
common Bug 1692549 [wpt PR 27529] - Cleanup unnecessary __init__.py files, a=testonly 2021-02-16 12:57:37 +00:00
compat
compression Bug 1688123 [wpt PR 27279] - Stop running compression detach tests on workers, a=testonly 2021-01-26 10:02:02 +00:00
conformance-checkers Bug 1682216 [wpt PR 26881] - cc Update messages.json, a=testonly 2020-12-17 13:31:04 +00:00
console
contacts Bug 1690075 [wpt PR 27429] - Migrate remaining WPT to Mojo JS modules, a=testonly 2021-02-08 22:55:28 +00:00
content-dpr
content-index Bug 1683833 [wpt PR 26983] - Add further META.yml files to ease specs to WPT mapping, a=testonly 2020-12-23 10:43:18 +00:00
content-security-policy Bug 1694133 [wpt PR 27727] - EE: Subsumption algorithm -- Wildcard lists, a=testonly 2021-03-08 15:13:19 +00:00
contenteditable
cookie-store
cookies Bug 1692549 [wpt PR 27529] - Cleanup unnecessary __init__.py files, a=testonly 2021-02-16 12:57:37 +00:00
core-aam
cors Bug 1460299 - Add content-length as a CORS-safelisted response header. r=valentin,baku 2021-02-15 12:51:33 +00:00
cors-rfc1918
credential-management
css Backed out 3 changesets (bug 1696176, bug 1342741) for test_nsIHTMLEditor_getSelectedElement.html and inert-retargeting-iframe.tentative.html failures CLOSED TREE 2021-03-10 17:06:26 +02:00
custom-elements Bug 1651038 - nsXMLContentSink::DidBuildModel should flush pending tags. r=hsivonen 2021-03-03 09:50:14 +00:00
custom-state-pseudo-class Bug 1687298 [wpt PR 27223] - Update interfaces/custom-state-pseudo-class.idl and test, a=testonly 2021-01-21 14:17:26 +00:00
delegated-ink
density-size-correction
deprecation-reporting Bug 1683833 [wpt PR 26983] - Add further META.yml files to ease specs to WPT mapping, a=testonly 2020-12-23 10:43:18 +00:00
device-memory
docs Bug 1692549 [wpt PR 27529] - Cleanup unnecessary __init__.py files, a=testonly 2021-02-16 12:57:37 +00:00
document-policy Bug 1686813 [wpt PR 27192] - [Document Policy] Use document policy to control document-domain, a=testonly 2021-02-02 17:07:46 +00:00
dom Bug 1690906: Fix Event-dispatch-redispatch.html to pass on macOS with non-native theme enabled. r=emilio 2021-02-18 04:34:01 +00:00
domparsing
domxpath
dpub-aam
dpub-aria
editing Bug 1697249 - Stop creating <span> element for keeping same style as the link when the link will be unlinked r=m_kato 2021-03-11 07:19:33 +00:00
element-timing
encoding Bug 1692045 [wpt PR 27580] - TextDecoder: Passing explicit undefined to decode(), a=testonly 2021-02-15 11:35:20 +00:00
encoding-detection
encrypted-media
entries-api Bug 1692804 [wpt PR 27627] - Add manual wpt test for clipboard files, a=testonly 2021-03-08 15:13:00 +00:00
event-timing Bug 1696437 - Annotate more Android+nnt tests. r=mstange 2021-03-04 20:35:23 +00:00
eventsource
feature-policy Bug 1680574 [wpt PR 26748] - Remove support for setting sandbox flags via "allow", a=testonly 2020-12-14 09:48:26 +00:00
fetch Bug 1692017 [wpt PR 27575] - Fetch: fragments, a=testonly 2021-03-08 15:12:46 +00:00
file-system-access Bug 1690345 [wpt PR 27445] - [FSA] Add ID feature to file picker, a=testonly 2021-02-15 11:35:17 +00:00
FileAPI Bug 1689406 [wpt PR 27368] - chore: move FileAPI/blob to .js files, a=testonly 2021-02-09 11:34:47 +00:00
focus Bug 1677474 - Part 3: Trigger blur steps when window needs to adjust its focused element; r=hsivonen 2021-03-02 10:17:16 +00:00
font-access Bug 1688917 [wpt PR 27335] - FontAccess: Style as a required attribute, a=testonly 2021-02-02 17:07:53 +00:00
fonts Bug 1682529 [wpt PR 26904] - [resource-timing] Fix negative duration case, a=testonly 2021-01-09 06:16:55 +00:00
forced-colors-mode Bug 1687049 [wpt PR 27206] - Stop-color, flood-color, and lighting-color in forced colors mode, a=testonly 2021-01-22 04:14:06 +00:00
fullscreen
gamepad
generic-sensor Bug 1690075 [wpt PR 27429] - Migrate remaining WPT to Mojo JS modules, a=testonly 2021-02-08 22:55:28 +00:00
geolocation-API
geolocation-sensor Bug 1683680 [wpt PR 26970] - Add/Fix META.yml files to ease specs to WPT mapping, a=testonly 2020-12-22 17:26:21 +00:00
graphics-aam
gyroscope
hr-time
html Bug 1696123 - Always copy the checkedness of input elements r=edgar 2021-03-09 14:12:34 +00:00
html-longdesc
html-media-capture
idle-detection Bug 1675508 [wpt PR 26414] - Add interfaces/idle-detection.idl and update test, a=testonly 2021-02-16 12:57:46 +00:00
imagebitmap-renderingcontext
images
import-maps Bug 1685822 [wpt PR 27117] - [Import Maps] Add tests for rejecting multiple import maps, a=testonly 2021-01-19 13:22:53 +00:00
IndexedDB Bug 1689701 [wpt PR 27394] - Replace most .__proto__ with Object.getPrototypeOf(), a=testonly 2021-02-04 12:08:26 +00:00
inert
infrastructure Bug 1690962 [wpt PR 27498] - Add error message for keyDown and keyUp actions in testdriver-vendor.js, a=testonly 2021-02-12 12:12:37 +00:00
input-device-capabilities Bug 1683680 [wpt PR 26970] - Add/Fix META.yml files to ease specs to WPT mapping, a=testonly 2020-12-22 17:26:21 +00:00
input-events Bug 1677566 - part 3: Ignore non-deletable ranges in HTMLEditor::HandleDeleteSelection() r=m_kato 2021-03-09 23:57:54 +00:00
installedapp Bug 1684023 [wpt PR 26997] - Target additional specs in META.yml files, a=testonly 2021-01-07 20:05:24 +00:00
interfaces Bug 1693525 [wpt PR 27676] - Update interfaces/permissions.idl, a=testonly 2021-03-08 15:12:47 +00:00
intersection-observer Bug 1682915 - Deal with root == target in intersection observer code. r=dholbert 2021-02-11 14:08:06 +00:00
intervention-reporting Bug 1683833 [wpt PR 26983] - Add further META.yml files to ease specs to WPT mapping, a=testonly 2020-12-23 10:43:18 +00:00
is-input-pending Bug 1683833 [wpt PR 26983] - Add further META.yml files to ease specs to WPT mapping, a=testonly 2020-12-23 10:43:18 +00:00
js Bug 1684023 [wpt PR 26997] - Target additional specs in META.yml files, a=testonly 2021-01-07 20:05:24 +00:00
js-self-profiling Bug 1683833 [wpt PR 26983] - Add further META.yml files to ease specs to WPT mapping, a=testonly 2020-12-23 10:43:18 +00:00
keyboard-lock Bug 1683680 [wpt PR 26970] - Add/Fix META.yml files to ease specs to WPT mapping, a=testonly 2020-12-22 17:26:21 +00:00
keyboard-map
largest-contentful-paint
layout-instability Bug 1690670 [wpt PR 27467] - Consider transform change countering layout shift, a=testonly 2021-02-16 12:57:47 +00:00
lifecycle Bug 1683680 [wpt PR 26970] - Add/Fix META.yml files to ease specs to WPT mapping, a=testonly 2020-12-22 17:26:21 +00:00
loading Bug 1598613 - Account for <link media=""> for speculative loads of stylesheet and preload links. r=hsivonen 2021-02-01 08:03:57 +00:00
longtask-timing Bug 1679024 [wpt PR 26614] - [LongTasks] Truncate duration to 1 ms resolution, a=testonly 2020-12-07 09:26:04 +00:00
magnetometer
mathml Bug 1693889 [wpt PR 27711] - Children of MathML containers always establish a new FC., a=testonly 2021-03-08 15:13:10 +00:00
measure-memory Bug 1686553 [wpt PR 27166] - Rename performance.measureMemory, a=testonly 2021-01-19 13:23:09 +00:00
media Bug 1680543 [wpt PR 26743] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=219493, a=testonly 2021-03-08 15:13:16 +00:00
media-capabilities Bug 1683680 [wpt PR 26970] - Add/Fix META.yml files to ease specs to WPT mapping, a=testonly 2020-12-22 17:26:21 +00:00
media-feeds
media-playback-quality
media-source Bug 1681440 [wpt PR 26811] - [MSE][WebCodecs] WSBI::AppendChunks through parser, plus e2e test, a=testonly 2020-12-17 13:30:59 +00:00
mediacapture-depth
mediacapture-fromelement
mediacapture-image Bug 1690075 [wpt PR 27429] - Migrate remaining WPT to Mojo JS modules, a=testonly 2021-02-08 22:55:28 +00:00
mediacapture-record Bug 1692971 [wpt PR 27638] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=221916, a=testonly 2021-02-22 16:08:06 +00:00
mediacapture-streams
mediasession Bug 1683680 [wpt PR 26970] - Add/Fix META.yml files to ease specs to WPT mapping, a=testonly 2020-12-22 17:26:21 +00:00
merchant-validation
mimesniff
mixed-content Bug 1692454 [wpt PR 27604] - Stricter mixed content check for blob and filesystem URLs, a=testonly 2021-02-16 12:57:42 +00:00
mst-content-hint
native-io Bug 1682236 [wpt PR 26883] - NativeIO: Add timeout=long to flaky web platform tests, a=testonly 2020-12-17 13:31:09 +00:00
navigation-timing
netinfo
network-error-logging Bug 1692478 [wpt PR 27607] - Clear reports in WPT collector when queried., a=testonly 2021-02-16 12:57:36 +00:00
notifications
old-tests
orientation-event Bug 1690075 [wpt PR 27429] - Migrate remaining WPT to Mojo JS modules, a=testonly 2021-02-08 22:55:28 +00:00
orientation-sensor
origin-policy Bug 1683833 [wpt PR 26983] - Add further META.yml files to ease specs to WPT mapping, a=testonly 2020-12-23 10:43:18 +00:00
page-lifecycle Bug 1683833 [wpt PR 26983] - Add further META.yml files to ease specs to WPT mapping, a=testonly 2020-12-23 10:43:18 +00:00
page-visibility
paint-timing
payment-handler
payment-method-basic-card
payment-method-id
payment-request Bug 1688307 [wpt PR 27292] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=220872, a=testonly 2021-02-01 17:35:50 +00:00
performance-timeline
periodic-background-sync
permissions
permissions-policy Bug 1691059 [wpt PR 27508] - [Permissions Policy] Add WPT test on history navigation on opaque origin, a=testonly 2021-02-15 11:35:16 +00:00
permissions-request Bug 1683833 [wpt PR 26983] - Add further META.yml files to ease specs to WPT mapping, a=testonly 2020-12-23 10:43:18 +00:00
permissions-revoke Bug 1683833 [wpt PR 26983] - Add further META.yml files to ease specs to WPT mapping, a=testonly 2020-12-23 10:43:18 +00:00
picture-in-picture Bug 1686668 [wpt PR 27185] - [Picture-in-Picture] Do not pause PiP video when removed from document, a=testonly 2021-01-22 04:13:57 +00:00
pointerevents Bug 1693651 - Split wpt pointerevent_sequence_at_implicit_release_on_click.html; r=jgraham 2021-02-28 23:00:32 +00:00
pointerlock
portals Bug 1693313 [wpt PR 27658] - Portals: Deflake autofocus tests, a=testonly 2021-03-08 15:12:49 +00:00
preload Bug 1694202 - Avoid link preload header and the parser creating two preload requests for the same script. r=smaug 2021-02-23 00:43:37 +00:00
presentation-api
priority-hints
proximity
push-api
quirks Bug 1689701 [wpt PR 27394] - Replace most .__proto__ with Object.getPrototypeOf(), a=testonly 2021-02-04 12:08:26 +00:00
raw-sockets Bug 1688869 [wpt PR 27330] - Direct Sockets: Move transient activation consumption from renderer to browser., a=testonly 2021-02-02 17:08:02 +00:00
referrer-policy Bug 1691880 [wpt PR 27563] - Do not change referrer policy on document.open, a=testonly 2021-03-08 15:13:06 +00:00
remote-playback
reporting Bug 1692478 [wpt PR 27607] - Clear reports in WPT collector when queried., a=testonly 2021-02-16 12:57:36 +00:00
requestidlecallback
resize-observer
resource-timing Bug 1693858 [wpt PR 27707] - Update ResourceTiming style guide to explain asserts vs. errors, a=testonly 2021-03-08 15:13:21 +00:00
resources Bug 1695537 - Make the template contents owner XML when not in HTML. r=edgar 2021-03-09 13:34:51 +00:00
sanitizer-api Bug 1664485 - Rename Sanitizer API tests to require SecureContext r=jgraham 2021-02-19 11:41:24 +00:00
savedata Bug 1683833 [wpt PR 26983] - Add further META.yml files to ease specs to WPT mapping, a=testonly 2020-12-23 10:43:18 +00:00
screen-capture
screen-orientation
screen-wake-lock
screen_enumeration Bug 1690075 [wpt PR 27429] - Migrate remaining WPT to Mojo JS modules, a=testonly 2021-02-08 22:55:28 +00:00
scroll-animations Bug 1693396 [wpt PR 27665] - Replaced start and end scroll offsets with scrollOffsets attribute, a=testonly 2021-03-08 15:12:58 +00:00
scroll-to-text-fragment Bug 1683680 [wpt PR 26970] - Add/Fix META.yml files to ease specs to WPT mapping, a=testonly 2020-12-22 17:26:21 +00:00
secure-contexts
secure-payment-confirmation
selection Backed out 2 changesets (bug 1528289) for breaking navigation with clicks after user scrolled by clicking with middle mouse button. a=backout 2021-03-03 14:29:12 +01:00
serial Bug 1690075 [wpt PR 27429] - Migrate remaining WPT to Mojo JS modules, a=testonly 2021-02-08 22:55:28 +00:00
server-timing
service-workers Bug 1693789 [wpt PR 27702] - Fix JS syntax error on wpt/service-workers/.../fetch-event.https.html, a=testonly 2021-03-08 15:13:04 +00:00
shadow-dom Bug 1691086 [wpt PR 27510] - [shadow-dom] shadow-dom/nested-slot-remove-crash.html should use let instead of const to declare variables, a=testonly 2021-02-12 12:12:17 +00:00
shape-detection Bug 1690075 [wpt PR 27429] - Migrate remaining WPT to Mojo JS modules, a=testonly 2021-02-08 22:55:28 +00:00
signed-exchange Bug 1692938 [wpt PR 27637] - Increase timeout of openSXGInIframeAndWaitForMessage, a=testonly 2021-02-22 16:08:12 +00:00
speech-api Bug 1683680 [wpt PR 26970] - Add/Fix META.yml files to ease specs to WPT mapping, a=testonly 2020-12-22 17:26:21 +00:00
storage Bug 1681857 [wpt PR 26846] - StorageBuckets: Initial browser implementation, a=testonly 2021-02-08 22:55:29 +00:00
storage-access-api Bug 1683680 [wpt PR 26970] - Add/Fix META.yml files to ease specs to WPT mapping, a=testonly 2020-12-22 17:26:21 +00:00
streams Bug 1687401 [wpt PR 27236] - Streams: settle reader.[[closedPromise]] before performing close/error steps of read requests, a=testonly 2021-02-12 12:12:13 +00:00
subresource-integrity
svg Bug 1692004 [wpt PR 27573] - Treat huge 'repeatCount' values as invalid, a=testonly 2021-02-12 12:12:31 +00:00
svg-aam
timing-entrytypes-registry Bug 1683680 [wpt PR 26970] - Add/Fix META.yml files to ease specs to WPT mapping, a=testonly 2020-12-22 17:26:21 +00:00
tools Bug 1693842 [wpt PR 27706] - Py3 fixes for VCS syncing, a=testonly 2021-03-08 15:13:09 +00:00
touch-events Bug 1693357 [wpt PR 27663] - Fix touch-events/single-touch.html on WPT dashboard, a=testonly 2021-03-08 15:12:41 +00:00
trust-tokens
trusted-types Bug 1690477 [wpt PR 27455] - [Trusted Types] Add toJSON to the trusted type interfaces., a=testonly 2021-02-09 11:34:46 +00:00
ua-client-hints Bug 1683833 [wpt PR 26983] - Add further META.yml files to ease specs to WPT mapping, a=testonly 2020-12-23 10:43:18 +00:00
uievents Bug 1674658: part 2) Don't peform the default action for mousemove events when it should be prevented. r=smaug 2021-02-23 13:27:41 +00:00
upgrade-insecure-requests
url Bug 1689701 [wpt PR 27394] - Replace most .__proto__ with Object.getPrototypeOf(), a=testonly 2021-02-04 12:08:26 +00:00
urlpattern Bug 1682993 [wpt PR 26933] - URLPattern: Remove WPT cases with poor URL interop., a=testonly 2020-12-21 15:00:07 +00:00
user-timing Bug 1685168 [wpt PR 27053] - fix: make user-timing/mark strict mode compatible, a=testonly 2021-01-26 10:02:03 +00:00
vibration
video-rvfc Bug 1688837 [wpt PR 27327] - Set capture_time_begin to reference time if missing, a=testonly 2021-02-02 17:08:02 +00:00
visual-viewport
wai-aria
wasm Bug 1686755 - Add support for optional parameters in WebAssembly.Table API. r=lth 2021-01-22 22:39:34 +00:00
web-animations
web-bundle Bug 1693515 [wpt PR 27674] - Make SubresourceWebBundles feature available only in Secure Context, a=testonly 2021-03-08 15:13:14 +00:00
web-locks
web-nfc Bug 1690075 [wpt PR 27429] - Migrate remaining WPT to Mojo JS modules, a=testonly 2021-02-08 22:55:28 +00:00
web-otp Bug 1683833 [wpt PR 26983] - Add further META.yml files to ease specs to WPT mapping, a=testonly 2020-12-23 10:43:18 +00:00
web-share
webaudio Bug 1691067 [wpt PR 27509] - Convert AudioParam NaN values to the default value, a=testonly 2021-02-12 12:12:10 +00:00
webauthn
webcodecs Bug 1692641 [wpt PR 27619] - Add WebGL tex(Sub)Image(2D|3D) support for WebCodecs VideoFrames., a=testonly 2021-03-08 15:12:56 +00:00
WebCryptoAPI Bug 1685770 [wpt PR 27113] - Remove jimsch from WebCryptoAPI/META.yml, a=testonly 2021-01-14 13:34:04 +00:00
webdriver Bug 1686841 [wpt PR 27195] - WebDriver Bidi tests with new Py3 WebSockets dependencies, a=testonly 2021-03-08 15:12:57 +00:00
webgl
webgpu
webhid Bug 1683833 [wpt PR 26983] - Add further META.yml files to ease specs to WPT mapping, a=testonly 2020-12-23 10:43:18 +00:00
WebIDL Bug 1686645 [wpt PR 27181] - [DOMException] add test cases of error names table, a=testonly 2021-01-19 13:23:22 +00:00
webmessaging
webmidi
webrtc Bug 1692822 [wpt PR 27629] - Adds more tests for DC availability during ICE restart, a=testonly 2021-02-16 12:57:45 +00:00
webrtc-extensions Bug 1683315 [wpt PR 26952] - RTCRtpTransceiver: introduce header extension control., a=testonly 2021-01-19 13:23:20 +00:00
webrtc-identity Bug 1683680 [wpt PR 26970] - Add/Fix META.yml files to ease specs to WPT mapping, a=testonly 2020-12-22 17:26:21 +00:00
webrtc-insertable-streams Bug 1683833 [wpt PR 26983] - Add further META.yml files to ease specs to WPT mapping, a=testonly 2020-12-23 10:43:18 +00:00
webrtc-priority Bug 1683833 [wpt PR 26983] - Add further META.yml files to ease specs to WPT mapping, a=testonly 2020-12-23 10:43:18 +00:00
webrtc-stats Bug 1691982 [wpt PR 27571] - Add test to measure which WebRTC stats are provided at all, a=testonly 2021-03-08 15:13:15 +00:00
webrtc-svc Bug 1683833 [wpt PR 26983] - Add further META.yml files to ease specs to WPT mapping, a=testonly 2020-12-23 10:43:18 +00:00
websockets Bug 1686731 [wpt PR 27189] - Add executable bit to three websocket files that have shebangs, a=testonly 2021-01-19 13:23:14 +00:00
webstorage
webtransport Bug 1692802 [wpt PR 27626] - Fix a link in WPT quic handler README, a=testonly 2021-02-16 12:57:42 +00:00
webusb Bug 1686473 [wpt PR 27140] - usb: Expand tests for USB transfer completion order, a=testonly 2021-01-19 13:22:57 +00:00
webvr
webvtt
webxr Bug 1693189 [wpt PR 27654] - WebXR depth: add WebXR test API extension for depth API & write WPTs, a=testonly 2021-03-08 15:12:50 +00:00
window-segments
workers Bug 1691238 [wpt PR 27516] - [WPT] Add more thorough same-origin tests of worker top-level scripts, a=testonly 2021-02-09 11:34:54 +00:00
worklets Bug 1662459 [wpt PR 25331] - Worklets: use idl_test and .any.js, a=testonly 2021-02-02 17:08:27 +00:00
x-frame-options Bug 1684023 [wpt PR 26997] - Target additional specs in META.yml files, a=testonly 2021-01-07 20:05:24 +00:00
xhr Bug 1460299 - Add content-length as a CORS-safelisted response header. r=valentin,baku 2021-02-15 12:51:33 +00:00
xslt
.azure-pipelines.yml Bug 1690050 [wpt PR 27427] - Fix #19620: add an option to wptrunner to stop Safari, a=testonly 2021-02-09 11:34:34 +00:00
.codecov.yml
.gitattributes
.gitignore
.mailmap
.pyup.yml
.taskcluster.yml
CODE_OF_CONDUCT.md
CODEOWNERS
CONTRIBUTING.md
LICENSE.md
lint.ignore Bug 1667972 [wpt PR 25834] - [COOP] access reporting: fix flakes reporting.html, a=testonly 2021-03-08 15:13:20 +00:00
README.md
testharness_runner.html
update-built-tests.sh
wpt Bug 1690036 [wpt PR 27426] - [wpt] Reject python versions <3.6, a=testonly 2021-02-04 12:08:24 +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 IRC chat room named #testing on irc.w3.org; includes participants located around the world, but busiest during the European working day; all discussion is archived here
  • 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 http://w3c-test.org/.

Pull requests are automatically mirrored except those that modify sensitive resources (such as .py). The latter require someone with merge access to comment with "LGTM" or "w3c-test:mirror" to indicate the pull request has been checked.

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!