Update web-platform-tests to revision 5e377e222095625488698633a435d6c19e4d611d

This commit is contained in:
WPT Sync Bot 2018-03-10 20:09:24 -05:00
parent 53d9ca1bcd
commit 53868fcf1b
18 changed files with 265 additions and 38 deletions

View file

@ -164,8 +164,12 @@ class FakeCentral {
scanResult.scanRecord.manufacturerData, Number);
}
// TODO(https://crbug.com/817603): Add a conversion process for serviceData
// when the field is added in Mojo.
// Convert serviceData from a record<DOMString, BufferSource> into a
// map<string, array<uint8>> for Mojo.
if ('serviceData' in scanResult.scanRecord) {
scanResult.scanRecord.serviceData.serviceData = convertToMojoMap(
scanResult.scanRecord.serviceData, BluetoothUUID.getService);
}
await this.fake_central_ptr_.simulateAdvertisementReceived(
new bluetooth.mojom.ScanResult(scanResult));