OLD | NEW |
---|---|
(Empty) | |
1 'use strict'; | |
2 promise_test(() => { | |
3 let val = new Uint8Array([1]); | |
4 return setBluetoothFakeAdapter('HeartRateAdapter') | |
5 .then(() => requestDeviceWithKeyDown({ | |
6 filters: [{services: ['heart_rate']}], | |
7 optionalServices: ['generic_access']})) | |
8 .then(device => device.gatt.connect()) | |
9 .then(gattServer => gattServer.getPrimaryService('generic_access')) | |
10 .then(service => service.getCharacteristic('gap.device_name')) | |
11 .then(characteristic => { | |
12 return setBluetoothFakeAdapter('MissingCharacteristicHeartRateAdapter') | |
13 .then(() => assert_promise_rejects_with_message( | |
14 characteristic.CALLS([ | |
15 getDescriptor(user_description.name)| | |
ortuno
2016/12/07 08:05:12
Also getDescriptors(user_description.name)[UUID]
dougt
2016/12/07 19:48:57
Done.
| |
16 getDescriptors()| | |
17 readValue()| | |
18 writeValue(val)| | |
19 startNotifications()]), | |
20 new DOMException( | |
21 'GATT Characteristic no longer exists.', | |
22 'InvalidStateError'), | |
23 'Characteristic got removed.')); | |
24 }); | |
25 }, 'Characteristic gets removed. Reject with InvalidStateError.'); | |
26 | |
OLD | NEW |