mirror of
https://github.com/servo/servo.git
synced 2025-08-12 17:05:33 +01:00
Update web-platform-tests to revision 5e377e222095625488698633a435d6c19e4d611d
This commit is contained in:
parent
53d9ca1bcd
commit
53868fcf1b
18 changed files with 265 additions and 38 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue