mirror of
https://github.com/servo/servo.git
synced 2025-08-24 22:58:21 +01:00
Update web-platform-tests to revision 4a5223502fa660ce03e470af6a61c8bc26c5a8ee
This commit is contained in:
parent
c5f7c9ccf3
commit
e891345f26
1328 changed files with 36632 additions and 20588 deletions
|
@ -9,7 +9,7 @@
|
|||
const test_desc = 'A device disconnecting while connected should fire the ' +
|
||||
'gattserverdisconnected event.';
|
||||
|
||||
bluetooth_test(() => getHealthThermometerDevice()
|
||||
bluetooth_test(() => getConnectedHealthThermometerDevice()
|
||||
.then(({device, fake_peripheral}) => {
|
||||
fake_peripheral.simulateGATTDisconnection();
|
||||
return eventPromise(device, 'gattserverdisconnected');
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
const test_desc = 'A device disconnecting after the BluetoothDevice object ' +
|
||||
'has been GC\'ed should not access freed memory.';
|
||||
|
||||
bluetooth_test(() => getHealthThermometerDevice()
|
||||
bluetooth_test(() => getConnectedHealthThermometerDevice()
|
||||
.then(({fake_peripheral}) => {
|
||||
// 1. Disconnect.
|
||||
fake_peripheral.simulateGATTDisconnection();
|
||||
|
|
|
@ -12,7 +12,7 @@ const test_desc = 'If a site disconnects from a device while the platform is ' +
|
|||
let device, fake_peripheral;
|
||||
let num_events = 0;
|
||||
|
||||
bluetooth_test(() => getHealthThermometerDevice()
|
||||
bluetooth_test(() => getConnectedHealthThermometerDevice()
|
||||
.then(_ => ({device, fake_peripheral} = _))
|
||||
// 1. Listen for disconnections.
|
||||
.then(() =>
|
||||
|
|
|
@ -10,7 +10,7 @@ let test_desc = 'A device that reconnects during the gattserverdisconnected ' +
|
|||
'event should still receive gattserverdisconnected events after ' +
|
||||
're-connection.';
|
||||
let device, fake_peripheral;
|
||||
bluetooth_test(() => getHealthThermometerDevice()
|
||||
bluetooth_test(() => getConnectedHealthThermometerDevice()
|
||||
.then(_ => ({device, fake_peripheral} = _))
|
||||
// 1. Disconnect.
|
||||
.then(() => new Promise(resolve => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue