Update web-platform-tests to revision 9f31d497bf87bdf5ebc3ba70b5cb9f87786f4071

This commit is contained in:
WPT Sync Bot 2019-10-15 10:23:11 +00:00
parent 1f64024655
commit 4bc7277be1
145 changed files with 3112 additions and 1980 deletions

View file

@ -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;