Update web-platform-tests to revision 8ae1ddbc812733c3a73b103eafad56fb43a2f4b5

This commit is contained in:
WPT Sync Bot 2019-01-26 20:37:16 -05:00
parent d44e9aced2
commit 0e5e5db397
109 changed files with 2053 additions and 708 deletions

View file

@ -7,3 +7,7 @@
interface AmbientLightSensor : Sensor {
readonly attribute double? illuminance;
};
dictionary AmbientLightReadingValues {
required double? illuminance;
};

View file

@ -20,22 +20,22 @@ dictionary LayoutOptions {
[Exposed=LayoutWorklet]
enum ChildDisplayType {
"block",
"block", // default - "blockifies" the child boxes.
"normal",
};
[Exposed=LayoutWorklet]
enum LayoutSizingMode {
"block-like",
"manual",
"block-like", // default - Sizing behaves like block containers.
"manual", // Sizing is specified by the web developer.
};
[Exposed=LayoutWorklet]
interface LayoutChild {
readonly attribute StylePropertyMapReadOnly styleMap;
IntrinsicSizesRequest intrinsicSizes();
LayoutFragmentRequest layoutNextFragment(LayoutConstraints constraints, ChildBreakToken breakToken);
Promise<IntrinsicSizes> intrinsicSizes();
Promise<LayoutFragment> layoutNextFragment(LayoutConstraintsOptions constraints, ChildBreakToken breakToken);
};
[Exposed=LayoutWorklet]
@ -57,7 +57,7 @@ interface IntrinsicSizes {
readonly attribute double maxContentSize;
};
[Constructor(optional LayoutConstraintsOptions options),Exposed=LayoutWorklet]
[Exposed=LayoutWorklet]
interface LayoutConstraints {
readonly attribute double availableInlineSize;
readonly attribute double availableBlockSize;
@ -74,9 +74,11 @@ interface LayoutConstraints {
readonly attribute any data;
};
enum BlockFragmentationType { "none", "page", "column", "region" };
dictionary LayoutConstraintsOptions {
double availableInlineSize = 0;
double availableBlockSize = 0;
double availableInlineSize;
double availableBlockSize;
double fixedInlineSize;
double fixedBlockSize;
@ -90,8 +92,6 @@ dictionary LayoutConstraintsOptions {
any data;
};
enum BlockFragmentationType { "none", "page", "column", "region" };
[Exposed=LayoutWorklet]
interface ChildBreakToken {
readonly attribute BreakType breakType;
@ -112,7 +112,7 @@ dictionary BreakTokenOptions {
enum BreakType { "none", "line", "column", "page", "region" };
[Exposed=LayoutWorklet]
interface LayoutEdgeSizes {
interface LayoutEdges {
readonly attribute double inlineStart;
readonly attribute double inlineEnd;
@ -124,26 +124,6 @@ interface LayoutEdgeSizes {
readonly attribute double block;
};
[Exposed=LayoutWorklet]
interface LayoutEdges {
readonly attribute LayoutEdgeSizes border;
readonly attribute LayoutEdgeSizes scrollbar;
readonly attribute LayoutEdgeSizes padding;
readonly attribute LayoutEdgeSizes all;
};
[Exposed=LayoutWorklet]
interface IntrinsicSizesRequest {
};
[Exposed=LayoutWorklet]
interface LayoutFragmentRequest {
};
typedef (IntrinsicSizesRequest or LayoutFragmentRequest)
LayoutFragmentRequestOrIntrinsicSizesRequest;
// This is the final return value from the author defined layout() method.
dictionary FragmentResultOptions {
double inlineSize = 0;
@ -154,6 +134,12 @@ dictionary FragmentResultOptions {
BreakTokenOptions breakToken = null;
};
[Constructor(FragmentResultOptions)]
interface FragmentResult {
readonly attribute double inlineSize;
readonly attribute double blockSize;
};
dictionary IntrinsicSizesResultOptions {
double maxContentSize;
double minContentSize;

View file

@ -28,3 +28,93 @@ interface SensorErrorEvent : Event {
dictionary SensorErrorEventInit : EventInit {
required DOMException error;
};
dictionary MockSensorConfiguration {
required MockSensorType mockSensorType;
boolean connected = true;
double? maxSamplingFrequency;
double? minSamplingFrequency;
};
dictionary MockSensor {
double maxSamplingFrequency;
double minSamplingFrequency;
double requestedSamplingFrequency;
};
enum MockSensorType {
"ambient-light",
"accelerometer",
"linear-acceleration",
"gravity",
"gyroscope",
"magnetometer",
"uncalibrated-magnetometer",
"absolute-orientation",
"relative-orientation",
"geolocation",
"proximity",
};
dictionary MockSensorReadingValues {
};
dictionary AmbientLightReadingValues {
required double? illuminance;
};
dictionary AccelerometerReadingValues {
required double? x;
required double? y;
required double? z;
};
dictionary LinearAccelerationReadingValues : AccelerometerReadingValues {
};
dictionary GravityReadingValues : AccelerometerReadingValues {
};
dictionary GyroscopeReadingValues {
required double? x;
required double? y;
required double? z;
};
dictionary MagnetometerReadingValues {
required double? x;
required double? y;
required double? z;
};
dictionary UncalibratedMagnetometerReadingValues {
required double? x;
required double? y;
required double? z;
required double? xBias;
required double? yBias;
required double? zBias;
};
dictionary AbsoluteOrientationReadingValues {
required FrozenArray<double>? quaternion;
};
dictionary RelativeOrientationReadingValues : AbsoluteOrientationReadingValues {
};
dictionary GeolocationReadingValues {
required double? latitude;
required double? longitude;
required double? altitude;
required double? accuracy;
required double? altitudeAccuracy;
required double? heading;
required double? speed;
};
dictionary ProximityReadingValues {
required double? distance;
required double? max;
required boolean? near;
};

View file

@ -3,8 +3,6 @@
// (https://github.com/tidoust/reffy-reports)
// Source: HTML Standard (https://html.spec.whatwg.org/)
// Example interface manually removed here, see https://github.com/tidoust/reffy/issues/129.
[Exposed=Window,
LegacyUnenumerableNamedProperties]
interface HTMLAllCollection {
@ -1524,6 +1522,7 @@ interface Window : EventTarget {
void postMessage(any message, optional WindowPostMessageOptions options);
};
Window includes GlobalEventHandlers;
Window includes WindowEventHandlers;
dictionary WindowPostMessageOptions : PostMessageOptions {
USVString targetOrigin = "/";
@ -1817,7 +1816,7 @@ interface mixin NavigatorID {
[Exposed=Window] readonly attribute DOMString vendorSub; // constant ""
};
partial interface NavigatorID {
partial interface mixin NavigatorID {
[Exposed=Window] boolean taintEnabled(); // constant false
[Exposed=Window] readonly attribute DOMString oscpu;
};
@ -2450,8 +2449,7 @@ partial interface Window {
[Replaceable, SameObject] readonly attribute External external;
};
[Exposed=Window,
NoInterfaceObject]
[Exposed=Window]
interface External {
void AddSearchProvider();
void IsSearchProviderInstalled();

View file

@ -92,7 +92,6 @@ interface PaymentAddress {
readonly attribute DOMString postalCode;
readonly attribute DOMString recipient;
readonly attribute DOMString region;
readonly attribute DOMString regionCode;
readonly attribute DOMString sortingCode;
readonly attribute FrozenArray<DOMString> addressLine;
};
@ -101,7 +100,6 @@ dictionary AddressInit {
DOMString country;
sequence<DOMString> addressLine;
DOMString region;
DOMString regionCode;
DOMString city;
DOMString dependentLocality;
DOMString postalCode;
@ -121,7 +119,6 @@ dictionary AddressErrors {
DOMString postalCode;
DOMString recipient;
DOMString region;
DOMString regionCode;
DOMString sortingCode;
};

View file

@ -9,6 +9,7 @@ partial interface HTMLVideoElement {
attribute EventHandler onenterpictureinpicture;
attribute EventHandler onleavepictureinpicture;
[CEReactions] attribute boolean autoPictureInPicture;
[CEReactions] attribute boolean disablePictureInPicture;
};

View file

@ -34,7 +34,7 @@ enum LandmarkType {
[Exposed=(Window,Worker),
Constructor(optional BarcodeDetectorOptions barcodeDetectorOptions)]
interface BarcodeDetector {
readonly attribute FrozenArray<BarcodeFormat> supportedFormats;
static Promise<sequence<BarcodeFormat>> getSupportedFormats();
Promise<sequence<DetectedBarcode>> detect(ImageBitmapSource image);
};

View file

@ -43,7 +43,7 @@ dictionary ModuleImportDescriptor {
interface Module {
static sequence<ModuleExportDescriptor> exports(Module moduleObject);
static sequence<ModuleImportDescriptor> imports(Module moduleObject);
static sequence<ArrayBuffer> customSections(Module moduleObject, USVString sectionName);
static sequence<ArrayBuffer> customSections(Module moduleObject, DOMString sectionName);
};
[LegacyNamespace=WebAssembly, Constructor(Module module, optional object importObject), Exposed=(Window,Worker,Worklet)]

View file

@ -3,12 +3,6 @@
// (https://github.com/tidoust/reffy-reports)
// Source: Identifiers for WebRTC's Statistics API (https://w3c.github.io/webrtc-stats/)
dictionary RTCStats {
DOMHighResTimeStamp timestamp;
RTCStatsType type;
DOMString id;
};
enum RTCStatsType {
"codec",
"inbound-rtp",
@ -314,7 +308,7 @@ partial dictionary RTCIceCandidatePairStats {
unsigned long long priority;
};
partial dictionary RTCRTPStreamStats {
partial dictionary RTCRtpStreamStats {
DOMString mediaType;
double averageRTCPInterval;
};