mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +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
|
@ -236,6 +236,16 @@ class FakeRemoteGATTService {
|
|||
characteristic_id, this.service_id_,
|
||||
this.peripheral_address_, this.fake_central_ptr_);
|
||||
}
|
||||
|
||||
// Removes the fake GATT service from its fake peripheral.
|
||||
async remove() {
|
||||
let {success} =
|
||||
await this.fake_central_ptr_.removeFakeService(
|
||||
this.service_id_,
|
||||
this.peripheral_address_);
|
||||
|
||||
if (!success) throw 'remove failed';
|
||||
}
|
||||
}
|
||||
|
||||
class FakeRemoteGATTCharacteristic {
|
||||
|
@ -367,4 +377,12 @@ class FakeRemoteGATTDescriptor {
|
|||
}
|
||||
}
|
||||
|
||||
navigator.bluetooth.test = new FakeBluetooth();
|
||||
// If this line fails, it means that current environment does not support the
|
||||
// Web Bluetooth Test API.
|
||||
try {
|
||||
navigator.bluetooth.test = new FakeBluetooth();
|
||||
} catch {
|
||||
throw 'Web Bluetooth Test API is not implemented on this ' +
|
||||
'environment. See the bluetooth README at ' +
|
||||
'https://github.com/w3c/web-platform-tests/blob/master/bluetooth/README.md#web-bluetooth-testing';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue