mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 9f31d497bf87bdf5ebc3ba70b5cb9f87786f4071
This commit is contained in:
parent
1f64024655
commit
4bc7277be1
145 changed files with 3112 additions and 1980 deletions
|
@ -246,12 +246,15 @@ function runGenericSensorTests(sensorName,
|
|||
assert_true(verificationFunction(expected, sensor2, /*isNull=*/true));
|
||||
}, `${sensorName}: sensor reading is correct.`);
|
||||
|
||||
sensor_test(async t => {
|
||||
sensor_test(async (t, sensorProvider) => {
|
||||
assert_true(sensorName in self);
|
||||
const sensor = new sensorType();
|
||||
const sensorWatcher = new EventWatcher(t, sensor, ["reading", "error"]);
|
||||
sensor.start();
|
||||
|
||||
const mockSensor = await sensorProvider.getCreatedSensor(sensorName);
|
||||
await mockSensor.setSensorReading(readings);
|
||||
|
||||
await sensorWatcher.wait_for("reading");
|
||||
const cachedTimeStamp1 = sensor.timestamp;
|
||||
|
||||
|
@ -392,6 +395,7 @@ function runGenericSensorTests(sensorName,
|
|||
fastSensor.start();
|
||||
|
||||
const mockSensor = await sensorProvider.getCreatedSensor(sensorName);
|
||||
await mockSensor.setSensorReading(readings);
|
||||
|
||||
const fastCounter = await new Promise((resolve, reject) => {
|
||||
let fastSensorNotifiedCounter = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue