Update web-platform-tests to revision e9f2d000237d43f74136cfd40e5a3454f5b54b70

This commit is contained in:
WPT Sync Bot 2019-09-17 10:24:07 +00:00
parent 8bc8981ae5
commit 57465056e7
127 changed files with 18346 additions and 155 deletions

View file

@ -7,13 +7,13 @@
SecureContext]
interface CookieStore : EventTarget {
Promise<CookieListItem?> get(USVString name);
Promise<CookieListItem?> get(optional CookieStoreGetOptions options);
Promise<CookieListItem?> get(optional CookieStoreGetOptions options = {});
Promise<CookieList> getAll(USVString name);
Promise<CookieList> getAll(optional CookieStoreGetOptions options);
Promise<CookieList> getAll(optional CookieStoreGetOptions options = {});
Promise<void> set(USVString name, USVString value,
optional CookieStoreSetOptions options);
optional CookieStoreSetOptions options = {});
Promise<void> set(CookieStoreSetExtraOptions options);
Promise<void> delete(USVString name);

View file

@ -3,11 +3,12 @@
// (https://github.com/tidoust/reffy-reports)
// Source: Geometry Interfaces Module Level 1 (https://drafts.fxtf.org/geometry/)
[Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
optional unrestricted double z = 0, optional unrestricted double w = 1),
Exposed=(Window,Worker),
[Exposed=(Window,Worker),
Serializable]
interface DOMPointReadOnly {
constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
optional unrestricted double z = 0, optional unrestricted double w = 1);
[NewObject] static DOMPointReadOnly fromPoint(optional DOMPointInit other = {});
readonly attribute unrestricted double x;
@ -20,12 +21,13 @@ interface DOMPointReadOnly {
[Default] object toJSON();
};
[Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
optional unrestricted double z = 0, optional unrestricted double w = 1),
Exposed=(Window,Worker),
[Exposed=(Window,Worker),
Serializable,
LegacyWindowAlias=SVGPoint]
interface DOMPoint : DOMPointReadOnly {
constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
optional unrestricted double z = 0, optional unrestricted double w = 1);
[NewObject] static DOMPoint fromPoint(optional DOMPointInit other = {});
inherit attribute unrestricted double x;
@ -41,11 +43,12 @@ dictionary DOMPointInit {
unrestricted double w = 1;
};
[Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
optional unrestricted double width = 0, optional unrestricted double height = 0),
Exposed=(Window,Worker),
[Exposed=(Window,Worker),
Serializable]
interface DOMRectReadOnly {
constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
optional unrestricted double width = 0, optional unrestricted double height = 0);
[NewObject] static DOMRectReadOnly fromRect(optional DOMRectInit other = {});
readonly attribute unrestricted double x;
@ -60,12 +63,13 @@ interface DOMRectReadOnly {
[Default] object toJSON();
};
[Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
optional unrestricted double width = 0, optional unrestricted double height = 0),
Exposed=(Window,Worker),
[Exposed=(Window,Worker),
Serializable,
LegacyWindowAlias=SVGRect]
interface DOMRect : DOMRectReadOnly {
constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
optional unrestricted double width = 0, optional unrestricted double height = 0);
[NewObject] static DOMRect fromRect(optional DOMRectInit other = {});
inherit attribute unrestricted double x;
@ -87,11 +91,12 @@ interface DOMRectList {
getter DOMRect? item(unsigned long index);
};
[Constructor(optional DOMPointInit p1 = {}, optional DOMPointInit p2 = {},
optional DOMPointInit p3 = {}, optional DOMPointInit p4 = {}),
Exposed=(Window,Worker),
[Exposed=(Window,Worker),
Serializable]
interface DOMQuad {
constructor(optional DOMPointInit p1 = {}, optional DOMPointInit p2 = {},
optional DOMPointInit p3 = {}, optional DOMPointInit p4 = {});
[NewObject] static DOMQuad fromRect(optional DOMRectInit other = {});
[NewObject] static DOMQuad fromQuad(optional DOMQuadInit other = {});
@ -111,10 +116,11 @@ dictionary DOMQuadInit {
DOMPointInit p4;
};
[Constructor(optional (DOMString or sequence<unrestricted double>) init),
Exposed=(Window,Worker),
[Exposed=(Window,Worker),
Serializable]
interface DOMMatrixReadOnly {
constructor(optional (DOMString or sequence<unrestricted double>) init);
[NewObject] static DOMMatrixReadOnly fromMatrix(optional DOMMatrixInit other = {});
[NewObject] static DOMMatrixReadOnly fromFloat32Array(Float32Array array32);
[NewObject] static DOMMatrixReadOnly fromFloat64Array(Float64Array array64);
@ -187,11 +193,12 @@ interface DOMMatrixReadOnly {
[Default] object toJSON();
};
[Constructor(optional (DOMString or sequence<unrestricted double>) init),
Exposed=(Window,Worker),
[Exposed=(Window,Worker),
Serializable,
LegacyWindowAlias=(SVGMatrix,WebKitCSSMatrix)]
interface DOMMatrix : DOMMatrixReadOnly {
constructor(optional (DOMString or sequence<unrestricted double>) init);
[NewObject] static DOMMatrix fromMatrix(optional DOMMatrixInit other = {});
[NewObject] static DOMMatrix fromFloat32Array(Float32Array array32);
[NewObject] static DOMMatrix fromFloat64Array(Float64Array array64);

View file

@ -16,8 +16,9 @@ dictionary PointerEventInit : MouseEventInit {
boolean isPrimary = false;
};
[Constructor(DOMString type, optional PointerEventInit eventInitDict = {}), Exposed=Window]
[Exposed=Window]
interface PointerEvent : MouseEvent {
constructor(DOMString type, optional PointerEventInit eventInitDict = {});
readonly attribute long pointerId;
readonly attribute double width;
readonly attribute double height;

View file

@ -12,8 +12,8 @@ interface Report {
readonly attribute ReportBody? body;
};
[Constructor(ReportingObserverCallback callback, optional ReportingObserverOptions options)]
interface ReportingObserver {
constructor(ReportingObserverCallback callback, optional ReportingObserverOptions options = {});
void observe();
void disconnect();
ReportList takeRecords();

View file

@ -97,7 +97,6 @@ dictionary ComputedEffectTiming : EffectTiming {
Constructor(KeyframeEffect source)]
interface KeyframeEffect : AnimationEffect {
attribute (Element or CSSPseudoElement)? target;
attribute IterationCompositeOperation iterationComposite;
attribute CompositeOperation composite;
sequence<object> getKeyframes();
void setKeyframes(object? keyframes);
@ -123,12 +122,9 @@ dictionary BaseKeyframe {
};
dictionary KeyframeEffectOptions : EffectTiming {
IterationCompositeOperation iterationComposite = "replace";
CompositeOperation composite = "replace";
};
enum IterationCompositeOperation { "replace", "accumulate" };
enum CompositeOperation { "replace", "add", "accumulate" };
enum CompositeOperationOrAuto { "replace", "add", "accumulate", "auto" };

View file

@ -4,7 +4,8 @@
// Source: Web MIDI API (http://webaudio.github.io/web-midi-api/)
partial interface Navigator {
[SecureContext] Promise <MIDIAccess> requestMIDIAccess(optional MIDIOptions options = {});
[SecureContext]
Promise <MIDIAccess> requestMIDIAccess(optional MIDIOptions options = {});
};
dictionary MIDIOptions {
@ -65,8 +66,9 @@ enum MIDIPortConnectionState {
"pending",
};
[SecureContext, Exposed=Window, Constructor(DOMString type, optional MIDIMessageEventInit eventInitDict = {})]
[SecureContext, Exposed=Window]
interface MIDIMessageEvent : Event {
constructor(DOMString type, optional MIDIMessageEventInit eventInitDict = {});
readonly attribute Uint8Array data;
};
@ -74,8 +76,9 @@ dictionary MIDIMessageEventInit : EventInit {
Uint8Array data;
};
[SecureContext, Exposed=Window, Constructor(DOMString type, optional MIDIConnectionEventInit eventInitDict = {})]
[SecureContext, Exposed=Window]
interface MIDIConnectionEvent : Event {
constructor(DOMString type, optional MIDIConnectionEventInit eventInitDict = {});
readonly attribute MIDIPort port;
};

View file

@ -22,7 +22,7 @@ enum RTCStatsType {
"local-candidate",
"remote-candidate",
"certificate",
"stunserverconnection"
"ice-server"
};
dictionary RTCRtpStreamStats : RTCStats {
@ -61,6 +61,9 @@ dictionary RTCReceivedRtpStreamStats : RTCRtpStreamStats {
double burstDiscardRate;
double gapLossRate;
double gapDiscardRate;
unsigned long framesDropped;
unsigned long partialFramesLost;
unsigned long fullFramesLost;
};
dictionary RTCInboundRtpStreamStats : RTCReceivedRtpStreamStats {
@ -100,9 +103,6 @@ dictionary RTCInboundRtpStreamStats : RTCReceivedRtpStreamStats {
double totalAudioEnergy;
double totalSamplesDuration;
unsigned long framesReceived;
unsigned long framesDropped;
unsigned long partialFramesLost;
unsigned long fullFramesLost;
DOMString decoderImplementation;
};
@ -114,10 +114,7 @@ dictionary RTCRemoteInboundRtpStreamStats : RTCReceivedRtpStreamStats {
dictionary RTCSentRtpStreamStats : RTCRtpStreamStats {
unsigned long packetsSent;
unsigned long packetsDiscardedOnSend;
unsigned long fecPacketsSent;
unsigned long long bytesSent;
unsigned long long bytesDiscardedOnSend;
};
dictionary RTCOutboundRtpStreamStats : RTCSentRtpStreamStats {
@ -126,6 +123,9 @@ dictionary RTCOutboundRtpStreamStats : RTCSentRtpStreamStats {
DOMString senderId;
DOMString remoteId;
DOMHighResTimeStamp lastPacketSentTimestamp;
unsigned long packetsDiscardedOnSend;
unsigned long long bytesDiscardedOnSend;
unsigned long fecPacketsSent;
unsigned long long retransmittedPacketsSent;
unsigned long long retransmittedBytesSent;
double targetBitrate;
@ -137,6 +137,7 @@ dictionary RTCOutboundRtpStreamStats : RTCSentRtpStreamStats {
unsigned long hugeFramesSent;
unsigned long framesEncoded;
unsigned long keyFramesEncoded;
unsigned long framesDiscardedOnSend;
unsigned long long qpSum;
unsigned long long totalSamplesSent;
boolean voiceActivityFlag;
@ -319,6 +320,8 @@ dictionary RTCIceCandidatePairStats : RTCStats {
unsigned long long retransmissionsSent;
unsigned long long consentRequestsSent;
DOMHighResTimeStamp consentExpiredTimestamp;
unsigned long packetsDiscardedOnSend;
unsigned long long bytesDiscardedOnSend;
};
enum RTCStatsIceCandidatePairState {
@ -336,7 +339,7 @@ dictionary RTCCertificateStats : RTCStats {
DOMString issuerCertificateId;
};
dictionary RTCStunServerConnectionStats : RTCStats {
dictionary RTCIceServerStats : RTCStats {
DOMString url;
long port;
DOMString protocol;