mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
WriteValue should return undefined
This commit is contained in:
parent
4dbca055c6
commit
50a5639a8b
4 changed files with 8 additions and 8 deletions
|
@ -13,6 +13,7 @@ promise_test(() => {
|
|||
.then(device => device.gatt.connect())
|
||||
.then(gattServer => gattServer.getPrimaryService(generic_access.name))
|
||||
.then(service => service.getCharacteristic(device_name.name))
|
||||
.then(characteristic => characteristic.writeValue(new Uint8Array(1)));
|
||||
.then(characteristic => characteristic.writeValue(new Uint8Array(1)))
|
||||
.then(result => assert_equals(result, undefined));
|
||||
}, 'A regular write request to a writable characteristic should succeed.');
|
||||
</script>
|
||||
|
|
|
@ -14,6 +14,7 @@ promise_test(t => {
|
|||
.then(gattServer => gattServer.getPrimaryService(generic_access.name))
|
||||
.then(service => service.getCharacteristic(device_name.name))
|
||||
.then(characteristic => characteristic.getDescriptor(number_of_digitals.name))
|
||||
.then(descriptor => descriptor.writeValue(new Uint8Array(1)));
|
||||
.then(descriptor => descriptor.writeValue(new Uint8Array(1)))
|
||||
.then(result => assert_equals(result, undefined));
|
||||
}, 'A regular write request to a writable descriptor should succeed.');
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue