Update web-platform-tests to revision 33c263fb308d1c3f6ac6d2590d7292317262819d

This commit is contained in:
WPT Sync Bot 2019-08-23 10:24:44 +00:00
parent 5bf00c07c2
commit 482fda3a78
524 changed files with 14686 additions and 3270 deletions

View file

@ -3,7 +3,7 @@
// (https://github.com/tidoust/reffy-reports)
// Source: Web App Manifest (https://w3c.github.io/manifest/)
[Constructor(DOMString type, optional EventInit eventInitDict),
[Constructor(DOMString type, optional EventInit eventInitDict = {}),
Exposed=Window]
interface BeforeInstallPromptEvent : Event {
Promise<PromptResponseObject> prompt();

View file

@ -7,7 +7,7 @@ dictionary ClipboardEventInit : EventInit {
DataTransfer? clipboardData = null;
};
[Constructor(DOMString type, optional ClipboardEventInit eventInitDict), Exposed=Window]
[Constructor(DOMString type, optional ClipboardEventInit eventInitDict = {}), Exposed=Window]
interface ClipboardEvent : Event {
readonly attribute DataTransfer? clipboardData;
};
@ -31,11 +31,11 @@ typedef Promise<ClipboardItemDataType> ClipboardItemData;
callback ClipboardItemDelayedCallback = ClipboardItemData ();
[Constructor(record<DOMString, ClipboardItemData> items,
optional ClipboardItemOptions options),
optional ClipboardItemOptions options = {}),
Exposed=Window] interface ClipboardItem {
static ClipboardItem createDelayed(
record<DOMString, ClipboardItemDelayedCallback> items,
optional ClipboardItemOptions options);
optional ClipboardItemOptions options = {});
readonly attribute PresentationStyle presentationStyle;
readonly attribute long long lastModified;

View file

@ -4,7 +4,7 @@
// Source: CSS Animations Level 1 (https://drafts.csswg.org/css-animations/)
[Exposed=Window,
Constructor(CSSOMString type, optional AnimationEventInit animationEventInitDict)]
Constructor(CSSOMString type, optional AnimationEventInit animationEventInitDict = {})]
interface AnimationEvent : Event {
readonly attribute CSSOMString animationName;
readonly attribute double elapsedTime;

View file

@ -4,7 +4,7 @@
// Source: CSS Transitions (https://drafts.csswg.org/css-transitions/)
[Exposed=Window,
Constructor(CSSOMString type, optional TransitionEventInit transitionEventInitDict)]
Constructor(CSSOMString type, optional TransitionEventInit transitionEventInitDict = {})]
interface TransitionEvent : Event {
readonly attribute CSSOMString propertyName;
readonly attribute double elapsedTime;

View file

@ -302,7 +302,7 @@ interface CSSPerspective : CSSTransformComponent {
};
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet),
Constructor(DOMMatrixReadOnly matrix, optional CSSMatrixComponentOptions options)]
Constructor(DOMMatrixReadOnly matrix, optional CSSMatrixComponentOptions options = {})]
interface CSSMatrixComponent : CSSTransformComponent {
attribute DOMMatrix matrix;
};

View file

@ -32,11 +32,11 @@ partial interface Window {
[Replaceable] readonly attribute double pageXOffset;
[Replaceable] readonly attribute double scrollY;
[Replaceable] readonly attribute double pageYOffset;
void scroll(optional ScrollToOptions options);
void scroll(optional ScrollToOptions options = {});
void scroll(unrestricted double x, unrestricted double y);
void scrollTo(optional ScrollToOptions options);
void scrollTo(optional ScrollToOptions options = {});
void scrollTo(unrestricted double x, unrestricted double y);
void scrollBy(optional ScrollToOptions options);
void scrollBy(optional ScrollToOptions options = {});
void scrollBy(unrestricted double x, unrestricted double y);
// client
@ -59,7 +59,7 @@ interface MediaQueryList : EventTarget {
};
[Exposed=Window,
Constructor(CSSOMString type, optional MediaQueryListEventInit eventInitDict)]
Constructor(CSSOMString type, optional MediaQueryListEventInit eventInitDict = {})]
interface MediaQueryListEvent : Event {
readonly attribute CSSOMString media;
readonly attribute boolean matches;
@ -103,12 +103,12 @@ dictionary ScrollIntoViewOptions : ScrollOptions {
partial interface Element {
DOMRectList getClientRects();
[NewObject] DOMRect getBoundingClientRect();
void scrollIntoView(optional (boolean or ScrollIntoViewOptions) arg);
void scroll(optional ScrollToOptions options);
void scrollIntoView(optional (boolean or ScrollIntoViewOptions) arg = {});
void scroll(optional ScrollToOptions options = {});
void scroll(unrestricted double x, unrestricted double y);
void scrollTo(optional ScrollToOptions options);
void scrollTo(optional ScrollToOptions options = {});
void scrollTo(unrestricted double x, unrestricted double y);
void scrollBy(optional ScrollToOptions options);
void scrollBy(optional ScrollToOptions options = {});
void scrollBy(unrestricted double x, unrestricted double y);
attribute unrestricted double scrollTop;
attribute unrestricted double scrollLeft;
@ -170,10 +170,10 @@ dictionary ConvertCoordinateOptions {
};
interface mixin GeometryUtils {
sequence<DOMQuad> getBoxQuads(optional BoxQuadOptions options);
DOMQuad convertQuadFromNode(DOMQuadInit quad, GeometryNode from, optional ConvertCoordinateOptions options);
DOMQuad convertRectFromNode(DOMRectReadOnly rect, GeometryNode from, optional ConvertCoordinateOptions options);
DOMPoint convertPointFromNode(DOMPointInit point, GeometryNode from, optional ConvertCoordinateOptions options); // XXX z,w turns into 0
sequence<DOMQuad> getBoxQuads(optional BoxQuadOptions options = {});
DOMQuad convertQuadFromNode(DOMQuadInit quad, GeometryNode from, optional ConvertCoordinateOptions options = {});
DOMQuad convertRectFromNode(DOMRectReadOnly rect, GeometryNode from, optional ConvertCoordinateOptions options = {});
DOMPoint convertPointFromNode(DOMPointInit point, GeometryNode from, optional ConvertCoordinateOptions options = {}); // XXX z,w turns into 0
};
Text includes GeometryUtils; // like Range

View file

@ -5,7 +5,7 @@
[Exposed=(Window,Worker),
SecureContext,
Constructor(optional FaceDetectorOptions faceDetectorOptions)]
Constructor(optional FaceDetectorOptions faceDetectorOptions = {})]
interface FaceDetector {
Promise<sequence<DetectedFace>> detect(ImageBitmapSource image);
};
@ -36,7 +36,7 @@ enum LandmarkType {
[Exposed=(Window,Worker),
SecureContext,
Constructor(optional BarcodeDetectorOptions barcodeDetectorOptions)]
Constructor(optional BarcodeDetectorOptions barcodeDetectorOptions = {})]
interface BarcodeDetector {
static Promise<sequence<BarcodeFormat>> getSupportedFormats();

View file

@ -29,7 +29,7 @@ interface Bluetooth : EventTarget {
attribute EventHandler onavailabilitychanged;
[SameObject]
readonly attribute BluetoothDevice? referringDevice;
Promise<BluetoothDevice> requestDevice(optional RequestDeviceOptions options);
Promise<BluetoothDevice> requestDevice(optional RequestDeviceOptions options = {});
};
Bluetooth includes BluetoothDeviceEventHandlers;
Bluetooth includes CharacteristicEventHandlers;
@ -60,7 +60,7 @@ interface BluetoothPermissionResult : PermissionStatus {
[
Exposed=Window,
Constructor(DOMString type, optional ValueEventInit initDict),
Constructor(DOMString type, optional ValueEventInit initDict = {}),
SecureContext
]
interface ValueEvent : Event {

View file

@ -21,9 +21,9 @@ interface NDEFRecord {
readonly attribute NDEFRecordType recordType;
readonly attribute USVString mediaType;
USVString toText();
[NewObject] ArrayBuffer toArrayBuffer();
[NewObject] object toJSON();
USVString? toText();
[NewObject] ArrayBuffer? toArrayBuffer();
[NewObject] object? toJSON();
};
dictionary NDEFRecordInit {
@ -37,18 +37,17 @@ typedef DOMString NDEFRecordType;
typedef (DOMString or ArrayBuffer or NDEFMessageInit) NDEFMessageSource;
[Constructor(), SecureContext, Exposed=Window]
[Constructor, SecureContext, Exposed=Window]
interface NFCWriter {
Promise<void> push(NDEFMessageSource message, optional NFCPushOptions options={});
};
[Constructor(optional NFCReaderOptions options={}), SecureContext, Exposed=Window]
[Constructor, SecureContext, Exposed=Window]
interface NFCReader : EventTarget {
attribute EventHandler onreading;
attribute EventHandler onerror;
void start();
void stop();
void scan(optional NFCScanOptions options={});
};
[Constructor(DOMString type, NFCReadingEventInit readingEventInitDict), SecureContext, Exposed=Window]
@ -91,7 +90,8 @@ enum NFCPushTarget {
"any"
};
dictionary NFCReaderOptions {
dictionary NFCScanOptions {
AbortSignal? signal;
USVString url = "";
NDEFRecordType recordType;
USVString mediaType = "";

View file

@ -7,6 +7,7 @@
interface WorkletGlobalScope {
};
[Exposed=Window]
interface Worklet {
[NewObject] Promise<void> addModule(USVString moduleURL, optional WorkletOptions options);
};