mirror of
https://github.com/servo/servo.git
synced 2025-08-24 22:58:21 +01:00
Update web-platform-tests to revision ddfc95cf0493ae147a4f6a4d7be8eff1a0c23098
This commit is contained in:
parent
1f6a864ab5
commit
7e6290451f
832 changed files with 16026 additions and 2649 deletions
|
@ -1,4 +1,3 @@
|
|||
@domenic
|
||||
@jensl
|
||||
@tobie
|
||||
@yuki3
|
||||
|
|
277
tests/wpt/web-platform-tests/interfaces/WebCryptoAPI.idl
Normal file
277
tests/wpt/web-platform-tests/interfaces/WebCryptoAPI.idl
Normal file
|
@ -0,0 +1,277 @@
|
|||
[NoInterfaceObject]
|
||||
interface GlobalCrypto {
|
||||
readonly attribute Crypto crypto;
|
||||
};
|
||||
|
||||
//Window implements GlobalCrypto;
|
||||
//WorkerGlobalScope implements GlobalCrypto;
|
||||
|
||||
[Exposed=(Window,Worker)]
|
||||
interface Crypto {
|
||||
readonly attribute SubtleCrypto subtle;
|
||||
ArrayBufferView getRandomValues(ArrayBufferView array);
|
||||
};
|
||||
|
||||
typedef (object or DOMString) AlgorithmIdentifier;
|
||||
|
||||
typedef AlgorithmIdentifier HashAlgorithmIdentifier;
|
||||
|
||||
dictionary Algorithm {
|
||||
required DOMString name;
|
||||
};
|
||||
|
||||
dictionary KeyAlgorithm {
|
||||
required DOMString name;
|
||||
};
|
||||
|
||||
enum KeyType { "public", "private", "secret" };
|
||||
|
||||
enum KeyUsage { "encrypt", "decrypt", "sign", "verify", "deriveKey", "deriveBits", "wrapKey", "unwrapKey" };
|
||||
|
||||
[Exposed=(Window,Worker)]
|
||||
interface CryptoKey {
|
||||
readonly attribute KeyType type;
|
||||
readonly attribute boolean extractable;
|
||||
readonly attribute object algorithm;
|
||||
readonly attribute object usages;
|
||||
};
|
||||
|
||||
|
||||
enum KeyFormat { "raw", "spki", "pkcs8", "jwk" };
|
||||
|
||||
[Exposed=(Window,Worker)]
|
||||
interface SubtleCrypto {
|
||||
Promise<any> encrypt(AlgorithmIdentifier algorithm,
|
||||
CryptoKey key,
|
||||
BufferSource data);
|
||||
Promise<any> decrypt(AlgorithmIdentifier algorithm,
|
||||
CryptoKey key,
|
||||
BufferSource data);
|
||||
Promise<any> sign(AlgorithmIdentifier algorithm,
|
||||
CryptoKey key,
|
||||
BufferSource data);
|
||||
Promise<any> verify(AlgorithmIdentifier algorithm,
|
||||
CryptoKey key,
|
||||
BufferSource signature,
|
||||
BufferSource data);
|
||||
Promise<any> digest(AlgorithmIdentifier algorithm,
|
||||
BufferSource data);
|
||||
|
||||
Promise<any> generateKey(AlgorithmIdentifier algorithm,
|
||||
boolean extractable,
|
||||
sequence<KeyUsage> keyUsages );
|
||||
Promise<any> deriveKey(AlgorithmIdentifier algorithm,
|
||||
CryptoKey baseKey,
|
||||
AlgorithmIdentifier derivedKeyType,
|
||||
boolean extractable,
|
||||
sequence<KeyUsage> keyUsages );
|
||||
Promise<any> deriveBits(AlgorithmIdentifier algorithm,
|
||||
CryptoKey baseKey,
|
||||
unsigned long length);
|
||||
|
||||
Promise<any> importKey(KeyFormat format,
|
||||
(BufferSource or JsonWebKey) keyData,
|
||||
AlgorithmIdentifier algorithm,
|
||||
boolean extractable,
|
||||
sequence<KeyUsage> keyUsages );
|
||||
Promise<any> exportKey(KeyFormat format, CryptoKey key);
|
||||
|
||||
Promise<any> wrapKey(KeyFormat format,
|
||||
CryptoKey key,
|
||||
CryptoKey wrappingKey,
|
||||
AlgorithmIdentifier wrapAlgorithm);
|
||||
Promise<any> unwrapKey(KeyFormat format,
|
||||
BufferSource wrappedKey,
|
||||
CryptoKey unwrappingKey,
|
||||
AlgorithmIdentifier unwrapAlgorithm,
|
||||
AlgorithmIdentifier unwrappedKeyAlgorithm,
|
||||
boolean extractable,
|
||||
sequence<KeyUsage> keyUsages );
|
||||
};
|
||||
|
||||
dictionary RsaOtherPrimesInfo {
|
||||
// The following fields are defined in Section 6.3.2.7 of JSON Web Algorithms
|
||||
DOMString r;
|
||||
DOMString d;
|
||||
DOMString t;
|
||||
};
|
||||
|
||||
dictionary JsonWebKey {
|
||||
// The following fields are defined in Section 3.1 of JSON Web Key
|
||||
DOMString kty;
|
||||
DOMString use;
|
||||
sequence<DOMString> key_ops;
|
||||
DOMString alg;
|
||||
|
||||
// The following fields are defined in JSON Web Key Parameters Registration
|
||||
boolean ext;
|
||||
|
||||
// The following fields are defined in Section 6 of JSON Web Algorithms
|
||||
DOMString crv;
|
||||
DOMString x;
|
||||
DOMString y;
|
||||
DOMString d;
|
||||
DOMString n;
|
||||
DOMString e;
|
||||
DOMString p;
|
||||
DOMString q;
|
||||
DOMString dp;
|
||||
DOMString dq;
|
||||
DOMString qi;
|
||||
sequence<RsaOtherPrimesInfo> oth;
|
||||
DOMString k;
|
||||
};
|
||||
|
||||
typedef Uint8Array BigInteger;
|
||||
|
||||
dictionary CryptoKeyPair {
|
||||
CryptoKey publicKey;
|
||||
CryptoKey privateKey;
|
||||
};
|
||||
|
||||
dictionary RsaKeyGenParams : Algorithm {
|
||||
// The length, in bits, of the RSA modulus
|
||||
[EnforceRange] required unsigned long modulusLength;
|
||||
// The RSA public exponent
|
||||
required BigInteger publicExponent;
|
||||
};
|
||||
|
||||
dictionary RsaHashedKeyGenParams : RsaKeyGenParams {
|
||||
// The hash algorithm to use
|
||||
required HashAlgorithmIdentifier hash;
|
||||
};
|
||||
|
||||
dictionary RsaKeyAlgorithm : KeyAlgorithm {
|
||||
// The length, in bits, of the RSA modulus
|
||||
required unsigned long modulusLength;
|
||||
// The RSA public exponent
|
||||
required BigInteger publicExponent;
|
||||
};
|
||||
|
||||
dictionary RsaHashedKeyAlgorithm : RsaKeyAlgorithm {
|
||||
// The hash algorithm that is used with this key
|
||||
required KeyAlgorithm hash;
|
||||
};
|
||||
|
||||
dictionary RsaHashedImportParams {
|
||||
// The hash algorithm to use
|
||||
required HashAlgorithmIdentifier hash;
|
||||
};
|
||||
|
||||
dictionary RsaPssParams : Algorithm {
|
||||
// The desired length of the random salt
|
||||
[EnforceRange] required unsigned long saltLength;
|
||||
};
|
||||
|
||||
dictionary RsaOaepParams : Algorithm {
|
||||
// The optional label/application data to associate with the message
|
||||
BufferSource label;
|
||||
};
|
||||
|
||||
dictionary EcdsaParams : Algorithm {
|
||||
// The hash algorithm to use
|
||||
required HashAlgorithmIdentifier hash;
|
||||
};
|
||||
|
||||
typedef DOMString NamedCurve;
|
||||
|
||||
dictionary EcKeyGenParams : Algorithm {
|
||||
// A named curve
|
||||
required NamedCurve namedCurve;
|
||||
};
|
||||
|
||||
dictionary EcKeyAlgorithm : KeyAlgorithm {
|
||||
// The named curve that the key uses
|
||||
required NamedCurve namedCurve;
|
||||
};
|
||||
|
||||
dictionary EcKeyImportParams : Algorithm {
|
||||
// A named curve
|
||||
required NamedCurve namedCurve;
|
||||
};
|
||||
|
||||
dictionary EcdhKeyDeriveParams : Algorithm {
|
||||
// The peer's EC public key.
|
||||
required CryptoKey public;
|
||||
};
|
||||
|
||||
dictionary AesCtrParams : Algorithm {
|
||||
// The initial value of the counter block. counter MUST be 16 bytes
|
||||
// (the AES block size). The counter bits are the rightmost length
|
||||
// bits of the counter block. The rest of the counter block is for
|
||||
// the nonce. The counter bits are incremented using the standard
|
||||
// incrementing function specified in NIST SP 800-38A Appendix B.1:
|
||||
// the counter bits are interpreted as a big-endian integer and
|
||||
// incremented by one.
|
||||
required BufferSource counter;
|
||||
// The length, in bits, of the rightmost part of the counter block
|
||||
// that is incremented.
|
||||
[EnforceRange] required octet length;
|
||||
};
|
||||
|
||||
dictionary AesKeyAlgorithm : KeyAlgorithm {
|
||||
// The length, in bits, of the key.
|
||||
required unsigned short length;
|
||||
};
|
||||
|
||||
dictionary AesKeyGenParams : Algorithm {
|
||||
// The length, in bits, of the key.
|
||||
[EnforceRange] required unsigned short length;
|
||||
};
|
||||
|
||||
dictionary AesDerivedKeyParams : Algorithm {
|
||||
// The length, in bits, of the key.
|
||||
[EnforceRange] required unsigned short length;
|
||||
};
|
||||
|
||||
dictionary AesCbcParams : Algorithm {
|
||||
// The initialization vector. MUST be 16 bytes.
|
||||
required BufferSource iv;
|
||||
};
|
||||
|
||||
dictionary AesGcmParams : Algorithm {
|
||||
// The initialization vector to use. May be up to 2^64-1 bytes long.
|
||||
required BufferSource iv;
|
||||
// The additional authentication data to include.
|
||||
BufferSource additionalData;
|
||||
// The desired length of the authentication tag. May be 0 - 128.
|
||||
[EnforceRange] octet tagLength;
|
||||
};
|
||||
|
||||
dictionary HmacImportParams : Algorithm {
|
||||
// The inner hash function to use.
|
||||
HashAlgorithmIdentifier hash;
|
||||
// The length (in bits) of the key.
|
||||
[EnforceRange] unsigned long length;
|
||||
};
|
||||
|
||||
dictionary HmacKeyAlgorithm : KeyAlgorithm {
|
||||
// The inner hash function to use.
|
||||
required KeyAlgorithm hash;
|
||||
// The length (in bits) of the key.
|
||||
required unsigned long length;
|
||||
};
|
||||
|
||||
dictionary HmacKeyGenParams : Algorithm {
|
||||
// The inner hash function to use.
|
||||
required HashAlgorithmIdentifier hash;
|
||||
// The length (in bits) of the key to generate. If unspecified, the
|
||||
// recommended length will be used, which is the size of the associated hash function's block
|
||||
// size.
|
||||
[EnforceRange] unsigned long length;
|
||||
};
|
||||
|
||||
dictionary HkdfCtrParams : Algorithm {
|
||||
// The algorithm to use with HMAC (e.g.: SHA-256)
|
||||
required HashAlgorithmIdentifier hash;
|
||||
// A bit string that corresponds to the label that identifies the purpose for the derived keying material.
|
||||
required BufferSource label;
|
||||
// A bit string that corresponds to the context of the key derivation, as described in Section 5 of [NIST SP800-108]
|
||||
required BufferSource context;
|
||||
};
|
||||
|
||||
dictionary Pbkdf2Params : Algorithm {
|
||||
required BufferSource salt;
|
||||
[EnforceRange] required unsigned long iterations;
|
||||
required HashAlgorithmIdentifier hash;
|
||||
};
|
33
tests/wpt/web-platform-tests/interfaces/gamepad.idl
Normal file
33
tests/wpt/web-platform-tests/interfaces/gamepad.idl
Normal file
|
@ -0,0 +1,33 @@
|
|||
interface Gamepad {
|
||||
readonly attribute DOMString id;
|
||||
readonly attribute long index;
|
||||
readonly attribute boolean connected;
|
||||
readonly attribute DOMHighResTimeStamp timestamp;
|
||||
readonly attribute GamepadMappingType mapping;
|
||||
readonly attribute FrozenArray<double> axes;
|
||||
readonly attribute FrozenArray<GamepadButton> buttons;
|
||||
};
|
||||
|
||||
interface GamepadButton {
|
||||
readonly attribute boolean pressed;
|
||||
readonly attribute boolean touched;
|
||||
readonly attribute double value;
|
||||
};
|
||||
|
||||
enum GamepadMappingType {
|
||||
"",
|
||||
"standard",
|
||||
};
|
||||
|
||||
partial interface Navigator {
|
||||
sequence<Gamepad?> getGamepads();
|
||||
};
|
||||
|
||||
[Constructor(GamepadEventInit eventInitDict)]
|
||||
interface GamepadEvent : Event {
|
||||
readonly attribute Gamepad gamepad;
|
||||
};
|
||||
|
||||
dictionary GamepadEventInit : EventInit {
|
||||
required Gamepad gamepad;
|
||||
};
|
|
@ -1133,7 +1133,7 @@ dictionary AssignedNodesOptions {
|
|||
boolean flatten = false;
|
||||
};
|
||||
|
||||
typedef (CanvasRenderingContext2D or WebGLRenderingContext) RenderingContext;
|
||||
typedef (CanvasRenderingContext2D or ImageBitmapRenderingContext or WebGLRenderingContext) RenderingContext;
|
||||
|
||||
[Exposed=Window,
|
||||
HTMLConstructor]
|
||||
|
|
6
tests/wpt/web-platform-tests/interfaces/proximity.idl
Normal file
6
tests/wpt/web-platform-tests/interfaces/proximity.idl
Normal file
|
@ -0,0 +1,6 @@
|
|||
[Constructor(optional SensorOptions sensorOptions), SecureContext, Exposed=Window]
|
||||
interface ProximitySensor : Sensor {
|
||||
readonly attribute double? distance;
|
||||
readonly attribute double? max;
|
||||
readonly attribute boolean? near;
|
||||
};
|
180
tests/wpt/web-platform-tests/interfaces/webxr.idl
Normal file
180
tests/wpt/web-platform-tests/interfaces/webxr.idl
Normal file
|
@ -0,0 +1,180 @@
|
|||
[SecureContext, Exposed=Window] interface XR : EventTarget {
|
||||
// Methods
|
||||
Promise<XRDevice?> requestDevice();
|
||||
|
||||
// Events
|
||||
attribute EventHandler ondevicechange;
|
||||
};
|
||||
|
||||
[SecureContext]
|
||||
partial interface Navigator {
|
||||
[SameObject] readonly attribute XR xr;
|
||||
};
|
||||
|
||||
[SecureContext, Exposed=Window] interface XRDevice : EventTarget {
|
||||
// Attributes
|
||||
readonly attribute boolean external;
|
||||
|
||||
// Methods
|
||||
Promise<void> supportsSession(optional XRSessionCreationOptions options);
|
||||
Promise<XRSession> requestSession(optional XRSessionCreationOptions options);
|
||||
};
|
||||
|
||||
dictionary XRSessionCreationOptions {
|
||||
boolean exclusive = false;
|
||||
XRPresentationContext outputContext;
|
||||
};
|
||||
|
||||
[SecureContext, Exposed=Window] interface XRSession : EventTarget {
|
||||
// Attributes
|
||||
readonly attribute XRDevice device;
|
||||
readonly attribute boolean exclusive;
|
||||
readonly attribute XRPresentationContext outputContext;
|
||||
|
||||
attribute double depthNear;
|
||||
attribute double depthFar;
|
||||
attribute XRLayer baseLayer;
|
||||
|
||||
// Methods
|
||||
Promise<XRFrameOfReference> requestFrameOfReference(XRFrameOfReferenceType type, optional XRFrameOfReferenceOptions options);
|
||||
|
||||
long requestAnimationFrame(XRFrameRequestCallback callback);
|
||||
void cancelAnimationFrame(long handle);
|
||||
|
||||
Promise<void> end();
|
||||
|
||||
// Events
|
||||
attribute EventHandler onblur;
|
||||
attribute EventHandler onfocus;
|
||||
attribute EventHandler onresetpose;
|
||||
attribute EventHandler onend;
|
||||
};
|
||||
|
||||
callback XRFrameRequestCallback = void (DOMHighResTimeStamp time, XRPresentationFrame frame);
|
||||
|
||||
[SecureContext, Exposed=Window] interface XRPresentationFrame {
|
||||
readonly attribute FrozenArray<XRView> views;
|
||||
|
||||
XRDevicePose? getDevicePose(XRCoordinateSystem coordinateSystem);
|
||||
};
|
||||
|
||||
[SecureContext, Exposed=Window] interface XRCoordinateSystem : EventTarget {
|
||||
Float32Array? getTransformTo(XRCoordinateSystem other);
|
||||
};
|
||||
|
||||
enum XRFrameOfReferenceType {
|
||||
"headModel",
|
||||
"eyeLevel",
|
||||
"stage",
|
||||
};
|
||||
|
||||
dictionary XRFrameOfReferenceOptions {
|
||||
boolean disableStageEmulation = false;
|
||||
double stageEmulationHeight = 0.0;
|
||||
};
|
||||
|
||||
[SecureContext, Exposed=Window] interface XRFrameOfReference : XRCoordinateSystem {
|
||||
readonly attribute XRStageBounds? bounds;
|
||||
readonly attribute double emulatedHeight;
|
||||
|
||||
attribute EventHandler onboundschange;
|
||||
};
|
||||
|
||||
[SecureContext, Exposed=Window] interface XRStageBounds {
|
||||
readonly attribute FrozenArray<XRStageBoundsPoint> geometry;
|
||||
};
|
||||
|
||||
[SecureContext, Exposed=Window] interface XRStageBoundsPoint {
|
||||
readonly attribute double x;
|
||||
readonly attribute double z;
|
||||
};
|
||||
|
||||
enum XREye {
|
||||
"left",
|
||||
"right"
|
||||
};
|
||||
|
||||
[SecureContext, Exposed=Window] interface XRView {
|
||||
readonly attribute XREye eye;
|
||||
readonly attribute Float32Array projectionMatrix;
|
||||
|
||||
XRViewport? getViewport(XRLayer layer);
|
||||
};
|
||||
|
||||
[SecureContext, Exposed=Window] interface XRViewport {
|
||||
readonly attribute long x;
|
||||
readonly attribute long y;
|
||||
readonly attribute long width;
|
||||
readonly attribute long height;
|
||||
};
|
||||
|
||||
[SecureContext, Exposed=Window] interface XRDevicePose {
|
||||
readonly attribute Float32Array poseModelMatrix;
|
||||
|
||||
Float32Array getViewMatrix(XRView view);
|
||||
};
|
||||
|
||||
[SecureContext, Exposed=Window] interface XRLayer {};
|
||||
|
||||
typedef (WebGLRenderingContext or
|
||||
WebGL2RenderingContext) XRWebGLRenderingContext;
|
||||
|
||||
dictionary XRWebGLLayerInit {
|
||||
boolean antialias = true;
|
||||
boolean depth = false;
|
||||
boolean stencil = false;
|
||||
boolean alpha = true;
|
||||
boolean multiview = false;
|
||||
double framebufferScaleFactor;
|
||||
};
|
||||
|
||||
[SecureContext, Exposed=Window, Constructor(XRSession session,
|
||||
XRWebGLRenderingContext context,
|
||||
optional XRWebGLLayerInit layerInit)]
|
||||
interface XRWebGLLayer : XRLayer {
|
||||
// Attributes
|
||||
readonly attribute XRWebGLRenderingContext context;
|
||||
|
||||
readonly attribute boolean antialias;
|
||||
readonly attribute boolean depth;
|
||||
readonly attribute boolean stencil;
|
||||
readonly attribute boolean alpha;
|
||||
readonly attribute boolean multiview;
|
||||
|
||||
readonly attribute WebGLFramebuffer framebuffer;
|
||||
readonly attribute unsigned long framebufferWidth;
|
||||
readonly attribute unsigned long framebufferHeight;
|
||||
|
||||
// Methods
|
||||
void requestViewportScaling(double viewportScaleFactor);
|
||||
};
|
||||
|
||||
partial dictionary WebGLContextAttributes {
|
||||
XRDevice compatibleXRDevice = null;
|
||||
};
|
||||
|
||||
partial interface mixin WebGLRenderingContextBase {
|
||||
Promise<void> setCompatibleXRDevice(XRDevice device);
|
||||
};
|
||||
|
||||
[SecureContext, Exposed=Window] interface XRPresentationContext {
|
||||
readonly attribute HTMLCanvasElement canvas;
|
||||
};
|
||||
|
||||
[SecureContext, Exposed=Window, Constructor(DOMString type, XRSessionEventInit eventInitDict)]
|
||||
interface XRSessionEvent : Event {
|
||||
readonly attribute XRSession session;
|
||||
};
|
||||
|
||||
dictionary XRSessionEventInit : EventInit {
|
||||
required XRSession session;
|
||||
};
|
||||
|
||||
[SecureContext, Exposed=Window, Constructor(DOMString type, XRCoordinateSystemEventInit eventInitDict)]
|
||||
interface XRCoordinateSystemEvent : Event {
|
||||
readonly attribute XRCoordinateSystem coordinateSystem;
|
||||
};
|
||||
|
||||
dictionary XRCoordinateSystemEventInit : EventInit {
|
||||
required XRCoordinateSystem coordinateSystem;
|
||||
};
|
91
tests/wpt/web-platform-tests/interfaces/xhr.idl
Normal file
91
tests/wpt/web-platform-tests/interfaces/xhr.idl
Normal file
|
@ -0,0 +1,91 @@
|
|||
/*[Exposed=(Window,Worker)]*/
|
||||
interface XMLHttpRequestEventTarget : EventTarget {
|
||||
// event handlers
|
||||
attribute EventHandler onloadstart;
|
||||
attribute EventHandler onprogress;
|
||||
attribute EventHandler onabort;
|
||||
attribute EventHandler onerror;
|
||||
attribute EventHandler onload;
|
||||
attribute EventHandler ontimeout;
|
||||
attribute EventHandler onloadend;
|
||||
};
|
||||
|
||||
/*[Exposed=(Window,Worker)]*/
|
||||
interface XMLHttpRequestUpload : XMLHttpRequestEventTarget {
|
||||
};
|
||||
|
||||
enum XMLHttpRequestResponseType {
|
||||
"",
|
||||
"arraybuffer",
|
||||
"blob",
|
||||
"document",
|
||||
"json",
|
||||
"text"
|
||||
};
|
||||
|
||||
[Constructor/*,
|
||||
Exposed=(Window,Worker)*/]
|
||||
interface XMLHttpRequest : XMLHttpRequestEventTarget {
|
||||
// event handler
|
||||
attribute EventHandler onreadystatechange;
|
||||
|
||||
// states
|
||||
const unsigned short UNSENT = 0;
|
||||
const unsigned short OPENED = 1;
|
||||
const unsigned short HEADERS_RECEIVED = 2;
|
||||
const unsigned short LOADING = 3;
|
||||
const unsigned short DONE = 4;
|
||||
readonly attribute unsigned short readyState;
|
||||
|
||||
// request
|
||||
void open(ByteString method, USVString url);
|
||||
void open(ByteString method, USVString url, boolean async, optional USVString? username = null, optional USVString? password = null);
|
||||
void setRequestHeader(ByteString name, ByteString value);
|
||||
attribute unsigned long timeout;
|
||||
attribute boolean withCredentials;
|
||||
readonly attribute XMLHttpRequestUpload upload;
|
||||
void send(optional (Document or BodyInit)? body = null);
|
||||
void abort();
|
||||
|
||||
// response
|
||||
readonly attribute USVString responseURL;
|
||||
readonly attribute unsigned short status;
|
||||
readonly attribute ByteString statusText;
|
||||
ByteString? getResponseHeader(ByteString name);
|
||||
ByteString getAllResponseHeaders();
|
||||
void overrideMimeType(DOMString mime);
|
||||
attribute XMLHttpRequestResponseType responseType;
|
||||
readonly attribute any response;
|
||||
readonly attribute USVString responseText;
|
||||
[Exposed=Window] readonly attribute Document? responseXML;
|
||||
};
|
||||
|
||||
typedef (File or USVString) FormDataEntryValue;
|
||||
|
||||
[Constructor(optional HTMLFormElement form)/*,
|
||||
Exposed=(Window,Worker)*/]
|
||||
interface FormData {
|
||||
void append(USVString name, Blob value, optional USVString filename);
|
||||
void append(USVString name, USVString value);
|
||||
void delete(USVString name);
|
||||
FormDataEntryValue? get(USVString name);
|
||||
sequence<FormDataEntryValue> getAll(USVString name);
|
||||
boolean has(USVString name);
|
||||
void set(USVString name, Blob value, optional USVString filename);
|
||||
void set(USVString name, USVString value);
|
||||
/*iterable<USVString, FormDataEntryValue>;*/
|
||||
};
|
||||
|
||||
[Constructor(DOMString type, optional ProgressEventInit eventInitDict)/*,
|
||||
Exposed=(Window,Worker)*/]
|
||||
interface ProgressEvent : Event {
|
||||
readonly attribute boolean lengthComputable;
|
||||
readonly attribute unsigned long long loaded;
|
||||
readonly attribute unsigned long long total;
|
||||
};
|
||||
|
||||
dictionary ProgressEventInit : EventInit {
|
||||
boolean lengthComputable = false;
|
||||
unsigned long long loaded = 0;
|
||||
unsigned long long total = 0;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue