mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08:25:32 +01:00
Switches WriteValue to use BufferSource
This commit is contained in:
parent
b8279b376b
commit
40235da2d3
3 changed files with 12 additions and 8 deletions
|
@ -16,8 +16,8 @@ promise_test(() => {
|
|||
.then(characteristic => characteristic.getDescriptor(number_of_digitals.name))
|
||||
.then(descriptor => {
|
||||
assert_equals(descriptor.value, null);
|
||||
return descriptor.writeValue(asciiToDecimal('foo'))
|
||||
.then(() => assert_equals(descriptor.value, 'foo'));
|
||||
return descriptor.writeValue(Uint8Array.of(1, 2))
|
||||
.then(() => assert_equals(descriptor.value, "\x01\x02"));
|
||||
});
|
||||
}, 'A regular write request to a writable descriptor should update value.');
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue