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

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-io-op-fails.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-io-op-fails.html
diff --git a/third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/gen-io-op-fails.html b/third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-io-op-fails.html
similarity index 90%
copy from third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/gen-io-op-fails.html
copy to third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-io-op-fails.html
index 2b4aea85f51582bba29caffbdd619ad4171d13ef..317a6d0d4a2199b56ec62dff0fda386205aa9432 100644
--- a/third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/gen-io-op-fails.html
+++ b/third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-io-op-fails.html
@@ -7,6 +7,7 @@
'use strict';
promise_test(
() => {
+ let val = new Uint8Array([1]);
return setBluetoothFakeAdapter('FailingGATTOperationsAdapter')
.then(
() => requestDeviceWithKeyDown(
@@ -27,12 +28,12 @@ promise_test(
.then(
descriptor =>
assert_promise_rejects_with_message(
- descriptor.readValue(),
+ descriptor.writeValue(val),
testSpec.error,
testSpec.testName));
});
return tests;
})})},
- 'readValue fails. Should reject with appropriate error.');
+ 'writeValue fails. Should reject with appropriate error.');
</script>

Powered by Google App Engine
This is Rietveld 408576698