Update web-platform-tests to revision 332b7c4e711d75ead4c0dfbf7f6f0b683206756d

This commit is contained in:
WPT Sync Bot 2019-09-25 10:24:05 +00:00
parent 46611b012e
commit b60afa18f5
389 changed files with 7767 additions and 2421 deletions

View file

@ -163,7 +163,7 @@ interface IDBKeyRange {
optional boolean lowerOpen = false,
optional boolean upperOpen = false);
boolean _includes(any key);
boolean includes(any key);
};
[Exposed=(Window,Worker)]

View file

@ -9,9 +9,9 @@ typedef (Int8Array or Int16Array or Int32Array or
typedef (ArrayBufferView or ArrayBuffer) BufferSource;
[Exposed=(Window,Worker),
Constructor(optional DOMString message = "", optional DOMString name = "Error"),
Serializable]
interface DOMException { // but see below note about ECMAScript binding
constructor(optional DOMString message = "", optional DOMString name = "Error");
readonly attribute DOMString name;
readonly attribute DOMString message;
readonly attribute unsigned short code;

View file

@ -78,9 +78,9 @@ dictionary CookieListItem {
typedef sequence<CookieListItem> CookieList;
[Exposed=Window,
SecureContext,
Constructor(DOMString type, optional CookieChangeEventInit eventInitDict)]
SecureContext]
interface CookieChangeEvent : Event {
constructor(DOMString type, optional CookieChangeEventInit eventInitDict = {});
readonly attribute CookieList changed;
readonly attribute CookieList deleted;
};
@ -90,9 +90,9 @@ dictionary CookieChangeEventInit : EventInit {
CookieList deleted;
};
[Exposed=ServiceWorker,
Constructor(DOMString type, optional ExtendableCookieChangeEventInit eventInitDict)
[Exposed=ServiceWorker
] interface ExtendableCookieChangeEvent : ExtendableEvent {
constructor(DOMString type, optional ExtendableCookieChangeEventInit eventInitDict = {});
readonly attribute CookieList changed;
readonly attribute CookieList deleted;
};

View file

@ -3,11 +3,13 @@
// (https://github.com/tidoust/reffy-reports)
// Source: CSS Masking Module Level 1 (https://drafts.fxtf.org/css-masking-1/)
[Exposed=Window]
interface SVGClipPathElement : SVGElement {
readonly attribute SVGAnimatedEnumeration clipPathUnits;
readonly attribute SVGAnimatedTransformList transform;
};
[Exposed=Window]
interface SVGMaskElement : SVGElement {
readonly attribute SVGAnimatedEnumeration maskUnits;
readonly attribute SVGAnimatedEnumeration maskContentUnits;

View file

@ -18,6 +18,7 @@ partial interface Document {
partial interface HTMLIFrameElement {
[SameObject] readonly attribute FeaturePolicy featurePolicy;
};
[Exposed=Window]
interface FeaturePolicyViolationReportBody : ReportBody {
readonly attribute DOMString featureId;
readonly attribute DOMString? sourceFile;

View file

@ -5,9 +5,10 @@
typedef (sequence<sequence<ByteString>> or record<ByteString, ByteString>) HeadersInit;
[Constructor(optional HeadersInit init),
Exposed=(Window,Worker)]
[Exposed=(Window,Worker)]
interface Headers {
constructor(optional HeadersInit init);
void append(ByteString name, ByteString value);
void delete(ByteString name);
ByteString? get(ByteString name);
@ -15,6 +16,7 @@ interface Headers {
void set(ByteString name, ByteString value);
iterable<ByteString, ByteString>;
};
typedef (Blob or BufferSource or FormData or URLSearchParams or ReadableStream or USVString) BodyInit;
interface mixin Body {
readonly attribute ReadableStream? body;
@ -27,9 +29,10 @@ interface mixin Body {
};
typedef (Request or USVString) RequestInfo;
[Constructor(RequestInfo input, optional RequestInit init = {}),
Exposed=(Window,Worker)]
[Exposed=(Window,Worker)]
interface Request {
constructor(RequestInfo input, optional RequestInit init = {});
readonly attribute ByteString method;
readonly attribute USVString url;
[SameObject] readonly attribute Headers headers;
@ -72,8 +75,10 @@ enum RequestMode { "navigate", "same-origin", "no-cors", "cors" };
enum RequestCredentials { "omit", "same-origin", "include" };
enum RequestCache { "default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached" };
enum RequestRedirect { "follow", "error", "manual" };
[Constructor(optional BodyInit? body = null, optional ResponseInit init = {}), Exposed=(Window,Worker)]
interface Response {
[Exposed=(Window,Worker)]interface Response {
constructor(optional BodyInit? body = null, optional ResponseInit init = {});
[NewObject] static Response error();
[NewObject] static Response redirect(USVString url, optional unsigned short status = 302);
@ -98,6 +103,7 @@ dictionary ResponseInit {
};
enum ResponseType { "basic", "cors", "default", "error", "opaque", "opaqueredirect" };
partial interface mixin WindowOrWorkerGlobalScope {
[NewObject] Promise<Response> fetch(RequestInfo input, optional RequestInit init);
[NewObject] Promise<Response> fetch(RequestInfo input, optional RequestInit init = {});
};

View file

@ -38,6 +38,6 @@ interface GamepadEvent: Event {
[SameObject] readonly attribute Gamepad gamepad;
};
dictionary GamepadEventInit: EventInit {
dictionary GamepadEventInit : EventInit {
required Gamepad gamepad;
};

View file

@ -19,9 +19,9 @@ dictionary SensorOptions {
double frequency;
};
[Constructor(DOMString type, SensorErrorEventInit errorEventInitDict),
SecureContext, Exposed=(DedicatedWorker, Window)]
[SecureContext, Exposed=(DedicatedWorker, Window)]
interface SensorErrorEvent : Event {
constructor(DOMString type, SensorErrorEventInit errorEventInitDict);
readonly attribute DOMException error;
};

View file

@ -3,9 +3,10 @@
// (https://github.com/tidoust/reffy-reports)
// Source: Magnetometer (https://w3c.github.io/magnetometer/)
[Constructor(optional MagnetometerSensorOptions sensorOptions = {}), SecureContext,
[SecureContext,
Exposed=Window]
interface Magnetometer : Sensor {
constructor(optional MagnetometerSensorOptions sensorOptions = {});
readonly attribute double? x;
readonly attribute double? y;
readonly attribute double? z;
@ -17,9 +18,10 @@ dictionary MagnetometerSensorOptions : SensorOptions {
MagnetometerLocalCoordinateSystem referenceFrame = "device";
};
[Constructor(optional MagnetometerSensorOptions sensorOptions = {}), SecureContext,
[SecureContext,
Exposed=Window]
interface UncalibratedMagnetometer : Sensor {
constructor(optional MagnetometerSensorOptions sensorOptions = {});
readonly attribute double? x;
readonly attribute double? y;
readonly attribute double? z;

View file

@ -3,9 +3,10 @@
// (https://github.com/tidoust/reffy-reports)
// Source: Notifications API Standard (https://notifications.spec.whatwg.org/)
[Constructor(DOMString title, optional NotificationOptions options = {}),
Exposed=(Window,Worker)]
[Exposed=(Window,Worker)]
interface Notification : EventTarget {
constructor(DOMString title, optional NotificationOptions options = {});
static readonly attribute NotificationPermission permission;
[Exposed=Window] static Promise<NotificationPermission> requestPermission(optional NotificationPermissionCallback deprecatedCallback);
@ -81,9 +82,10 @@ partial interface ServiceWorkerRegistration {
Promise<sequence<Notification>> getNotifications(optional GetNotificationOptions filter = {});
};
[Constructor(DOMString type, NotificationEventInit eventInitDict),
Exposed=ServiceWorker]
[Exposed=ServiceWorker]
interface NotificationEvent : ExtendableEvent {
constructor(DOMString type, NotificationEventInit eventInitDict);
readonly attribute Notification notification;
readonly attribute DOMString action;
};

View file

@ -7,8 +7,9 @@ partial interface Window {
[SecureContext] attribute EventHandler ondeviceorientation;
};
[Constructor(DOMString type, optional DeviceOrientationEventInit eventInitDict = {}), Exposed=Window, SecureContext]
[Exposed=Window, SecureContext]
interface DeviceOrientationEvent : Event {
constructor(DOMString type, optional DeviceOrientationEventInit eventInitDict = {});
readonly attribute double? alpha;
readonly attribute double? beta;
readonly attribute double? gamma;
@ -41,22 +42,23 @@ partial interface Window {
[SecureContext] attribute EventHandler ondevicemotion;
};
[SecureContext]
[Exposed=Window, SecureContext]
interface DeviceMotionEventAcceleration {
readonly attribute double? x;
readonly attribute double? y;
readonly attribute double? z;
};
[SecureContext]
[Exposed=Window, SecureContext]
interface DeviceMotionEventRotationRate {
readonly attribute double? alpha;
readonly attribute double? beta;
readonly attribute double? gamma;
};
[Constructor(DOMString type, optional DeviceMotionEventInit eventInitDict = {}), Exposed=Window, SecureContext]
[Exposed=Window, SecureContext]
interface DeviceMotionEvent : Event {
constructor(DOMString type, optional DeviceMotionEventInit eventInitDict = {});
readonly attribute DeviceMotionEventAcceleration? acceleration;
readonly attribute DeviceMotionEventAcceleration? accelerationIncludingGravity;
readonly attribute DeviceMotionEventRotationRate? rotationRate;

View file

@ -17,12 +17,14 @@ dictionary OrientationSensorOptions : SensorOptions {
OrientationSensorLocalCoordinateSystem referenceFrame = "device";
};
[Constructor(optional OrientationSensorOptions sensorOptions = {}), SecureContext, Exposed=Window]
[SecureContext, Exposed=Window]
interface AbsoluteOrientationSensor : OrientationSensor {
constructor(optional OrientationSensorOptions sensorOptions = {});
};
[Constructor(optional OrientationSensorOptions sensorOptions = {}), SecureContext, Exposed=Window]
[SecureContext, Exposed=Window]
interface RelativeOrientationSensor : OrientationSensor {
constructor(optional OrientationSensorOptions sensorOptions = {});
};
dictionary AbsoluteOrientationReadingValues {

View file

@ -40,8 +40,9 @@ partial interface ServiceWorkerGlobalScope {
attribute EventHandler oncanmakepayment;
};
[Constructor(DOMString type, CanMakePaymentEventInit eventInitDict), Exposed=ServiceWorker]
[Exposed=ServiceWorker]
interface CanMakePaymentEvent : ExtendableEvent {
constructor(DOMString type, CanMakePaymentEventInit eventInitDict);
readonly attribute USVString topOrigin;
readonly attribute USVString paymentRequestOrigin;
readonly attribute FrozenArray<PaymentMethodData> methodData;
@ -65,8 +66,9 @@ dictionary PaymentMethodChangeResponse {
object paymentMethodErrors;
};
[Constructor(DOMString type, PaymentRequestEventInit eventInitDict), Exposed=ServiceWorker]
[Exposed=ServiceWorker]
interface PaymentRequestEvent : ExtendableEvent {
constructor(DOMString type, PaymentRequestEventInit eventInitDict);
readonly attribute USVString topOrigin;
readonly attribute USVString paymentRequestOrigin;
readonly attribute DOMString paymentRequestId;

View file

@ -3,7 +3,7 @@
// (https://github.com/tidoust/reffy-reports)
// Source: Proximity Sensor (https://w3c.github.io/proximity/)
[Constructor(optional SensorOptions sensorOptions), SecureContext, Exposed=Window]
[Constructor(optional SensorOptions sensorOptions = {}), SecureContext, Exposed=Window]
interface ProximitySensor : Sensor {
readonly attribute double? distance;
readonly attribute double? max;

View file

@ -9,46 +9,47 @@ enum TouchType {
};
dictionary TouchInit {
required long identifier;
required long identifier;
required EventTarget target;
double clientX = 0;
double clientY = 0;
double screenX = 0;
double screenY = 0;
double pageX = 0;
double pageY = 0;
float radiusX = 0;
float radiusY = 0;
float rotationAngle = 0;
float force = 0;
double altitudeAngle = 0;
double azimuthAngle = 0;
TouchType touchType = "direct";
double clientX = 0;
double clientY = 0;
double screenX = 0;
double screenY = 0;
double pageX = 0;
double pageY = 0;
float radiusX = 0;
float radiusY = 0;
float rotationAngle = 0;
float force = 0;
double altitudeAngle = 0;
double azimuthAngle = 0;
TouchType touchType = "direct";
};
[Constructor(TouchInit touchInitDict), Exposed=Window]
[Exposed=Window]
interface Touch {
readonly attribute long identifier;
constructor(TouchInit touchInitDict);
readonly attribute long identifier;
readonly attribute EventTarget target;
readonly attribute double screenX;
readonly attribute double screenY;
readonly attribute double clientX;
readonly attribute double clientY;
readonly attribute double pageX;
readonly attribute double pageY;
readonly attribute float radiusX;
readonly attribute float radiusY;
readonly attribute float rotationAngle;
readonly attribute float force;
readonly attribute float altitudeAngle;
readonly attribute float azimuthAngle;
readonly attribute TouchType touchType;
readonly attribute double screenX;
readonly attribute double screenY;
readonly attribute double clientX;
readonly attribute double clientY;
readonly attribute double pageX;
readonly attribute double pageY;
readonly attribute float radiusX;
readonly attribute float radiusY;
readonly attribute float rotationAngle;
readonly attribute float force;
readonly attribute float altitudeAngle;
readonly attribute float azimuthAngle;
readonly attribute TouchType touchType;
};
[Exposed=Window]
interface TouchList {
readonly attribute unsigned long length;
getter Touch? item(unsigned long index);
getter Touch? item (unsigned long index);
};
dictionary TouchEventInit : EventModifierInit {
@ -57,8 +58,9 @@ dictionary TouchEventInit : EventModifierInit {
sequence<Touch> changedTouches = [];
};
[Constructor(DOMString type, optional TouchEventInit eventInitDict = {}), Exposed=Window]
[Exposed=Window]
interface TouchEvent : UIEvent {
constructor(DOMString type, optional TouchEventInit eventInitDict = {});
readonly attribute TouchList touches;
readonly attribute TouchList targetTouches;
readonly attribute TouchList changedTouches;

View file

@ -3,10 +3,11 @@
// (https://github.com/tidoust/reffy-reports)
// Source: URL Standard (https://url.spec.whatwg.org/)
[Constructor(USVString url, optional USVString base),
Exposed=(Window,Worker),
[Exposed=(Window,Worker),
LegacyWindowAlias=webkitURL]
interface URL {
constructor(USVString url, optional USVString base);
stringifier attribute USVString href;
readonly attribute USVString origin;
attribute USVString protocol;
@ -23,9 +24,10 @@ interface URL {
USVString toJSON();
};
[Constructor(optional (sequence<sequence<USVString>> or record<USVString, USVString> or USVString) init = ""),
Exposed=(Window,Worker)]
[Exposed=(Window,Worker)]
interface URLSearchParams {
constructor(optional (sequence<sequence<USVString>> or record<USVString, USVString> or USVString) init = "");
void append(USVString name, USVString value);
void delete(USVString name);
USVString? get(USVString name);

View file

@ -0,0 +1,21 @@
// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into reffy-reports
// (https://github.com/tidoust/reffy-reports)
// Source: WebXR Augmented Reality Module - Level 1 (https://immersive-web.github.io/webxr-ar-module/)
enum XRSessionMode {
"inline",
"immersive-vr",
"immersive-ar"
};
enum XREnvironmentBlendMode {
"opaque",
"alpha-blend",
"additive"
};
partial interface XRSession {
// Attributes
readonly attribute XREnvironmentBlendMode environmentBlendMode;
};

View file

@ -0,0 +1,14 @@
// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into reffy-reports
// (https://github.com/tidoust/reffy-reports)
// Source: WebXR Gamepads Module - Level 1 (https://immersive-web.github.io/webxr-gamepads-module/)
partial interface XRInputSource {
[SameObject] readonly attribute Gamepad? gamepad;
};
enum GamepadMappingType {
"", // Defined in the Gamepad API
"standard", // Defined in the Gamepad API
"xr-standard",
};