Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-descriptor-is-removed.html

Issue 2654403002: Implement WebBluetooth descriptor.writeValue() (Closed)
Patch Set: #4 Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-descriptor-is-removed.html
diff --git a/third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/gen-descriptor-is-removed.html b/third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-descriptor-is-removed.html
similarity index 94%
copy from third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/gen-descriptor-is-removed.html
copy to third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-descriptor-is-removed.html
index 5fb1b5bed6a138da2df06784d21d95ca51cb2d58..ed710b705e6d0babbac0209572d5a78f05840da7 100644
--- a/third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/gen-descriptor-is-removed.html
+++ b/third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-descriptor-is-removed.html
@@ -6,6 +6,7 @@
<script>
'use strict';
promise_test(() => {
+ let val = new Uint8Array([1]);
return setBluetoothFakeAdapter('DisconnectingHealthThermometerAdapter')
.then(
() => requestDeviceWithKeyDown(
@@ -20,7 +21,7 @@ promise_test(() => {
'MissingDescriptorsDisconnectingHealthThermometerAdapter')
.then(
() => assert_promise_rejects_with_message(
- descriptor.readValue(),
+ descriptor.writeValue(val),
new DOMException(
'GATT Descriptor no longer exists.',
'InvalidStateError'),

Powered by Google App Engine
This is Rietveld 408576698