mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update web-platform-tests to revision b202bbb5aa0d235b22bac11fe902eab1094ef9d2
This commit is contained in:
parent
9a6c96808b
commit
e90dd8bc6b
43 changed files with 669 additions and 286 deletions
24
tests/wpt/web-platform-tests/interfaces/encoding.idl
Normal file
24
tests/wpt/web-platform-tests/interfaces/encoding.idl
Normal 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 = "");
|
||||
};
|
|
@ -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,
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue