Update web-platform-tests to revision b202bbb5aa0d235b22bac11fe902eab1094ef9d2

This commit is contained in:
WPT Sync Bot 2018-03-13 21:24:22 -04:00
parent 9a6c96808b
commit e90dd8bc6b
43 changed files with 669 additions and 286 deletions

View file

@ -0,0 +1,24 @@
dictionary TextDecoderOptions {
boolean fatal = false;
boolean ignoreBOM = false;
};
dictionary TextDecodeOptions {
boolean stream = false;
};
[Constructor(optional DOMString label = "utf-8", optional TextDecoderOptions options),
Exposed=(Window,Worker)]
interface TextDecoder {
readonly attribute DOMString encoding;
readonly attribute boolean fatal;
readonly attribute boolean ignoreBOM;
USVString decode(optional BufferSource input, optional TextDecodeOptions options);
};
[Constructor,
Exposed=(Window,Worker)]
interface TextEncoder {
readonly attribute DOMString encoding;
[NewObject] Uint8Array encode(optional USVString input = "");
};

View file

@ -6,10 +6,10 @@ interface Magnetometer : Sensor {
readonly attribute double? z;
};
enum LocalCoordinateSystem { "device", "screen" };
enum MagnetometerLocalCoordinateSystem { "device", "screen" };
dictionary MagnetometerSensorOptions : SensorOptions {
LocalCoordinateSystem referenceFrame = "device";
MagnetometerLocalCoordinateSystem referenceFrame = "device";
};
[Constructor(optional MagnetometerSensorOptions sensorOptions), SecureContext,

View file

@ -6,10 +6,10 @@ interface OrientationSensor : Sensor {
void populateMatrix(RotationMatrixType targetMatrix);
};
enum LocalCoordinateSystem { "device", "screen" };
enum OrientationSensorLocalCoordinateSystem { "device", "screen" };
dictionary OrientationSensorOptions : SensorOptions {
LocalCoordinateSystem referenceFrame = "device";
OrientationSensorLocalCoordinateSystem referenceFrame = "device";
};
[Constructor(optional OrientationSensorOptions sensorOptions), SecureContext, Exposed=Window]