mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Update web-platform-tests to revision 10168e9a5d44efbc6e7d416d1d454eb9c9f1396c
This commit is contained in:
parent
c88dc51d03
commit
0e1caebaf4
791 changed files with 23381 additions and 5501 deletions
|
@ -10,7 +10,8 @@ const properties = {
|
|||
'AbsoluteOrientationSensor' : ['timestamp', 'quaternion'],
|
||||
'RelativeOrientationSensor' : ['timestamp', 'quaternion'],
|
||||
'GeolocationSensor' : ['timestamp', 'latitude', 'longitude', 'altitude',
|
||||
'accuracy', 'altitudeAccuracy', 'heading', 'speed']
|
||||
'accuracy', 'altitudeAccuracy', 'heading', 'speed'],
|
||||
'ProximitySensor' : ['timestamp', 'max']
|
||||
};
|
||||
|
||||
function assert_reading_not_null(sensor) {
|
||||
|
@ -257,6 +258,7 @@ function runGenericSensorOnerror(sensorType) {
|
|||
|
||||
const event = await sensorWatcher.wait_for("error");
|
||||
assert_false(sensor.activated);
|
||||
assert_equals(event.error.name, 'NotReadableError');
|
||||
assert_true(event.error.name == 'NotReadableError' ||
|
||||
event.error.name == 'NotAllowedError');
|
||||
}, `${sensorType.name}: 'onerror' event is fired when sensor is not supported`);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue