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

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/connectGATT.html

Issue 1464443002: bluetooth: android: Add BluetoothDevice::ConnectErrorCode enums (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: VI Created 4 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/connectGATT.html
diff --git a/third_party/WebKit/LayoutTests/bluetooth/connectGATT.html b/third_party/WebKit/LayoutTests/bluetooth/connectGATT.html
index 1c3f52ae7ca396b411f34e48a3851f1b79f0ae04..28a46a8c4b1b95137b5ea2b0e8b1dcf8727f9790 100644
--- a/third_party/WebKit/LayoutTests/bluetooth/connectGATT.html
+++ b/third_party/WebKit/LayoutTests/bluetooth/connectGATT.html
@@ -69,6 +69,41 @@ promise_test(() => {
uuid: errorUUID(0x7),
error: new DOMException('Unsupported device.',
'NetworkError')
+}, {
+ testName: 'A write operation exceeds the maximum length of the attribute.',
+ uuid: errorUUID(0x8),
+ error: new DOMException('Attribute length invalid.',
+ 'NetworkError')
+}, {
+ testName: 'A remote device connection is congested.',
+ uuid: errorUUID(0x9),
+ error: new DOMException('Connection congested.',
+ 'NetworkError')
+}, {
+ testName: 'Insufficient encryption for a given operation.',
+ uuid: errorUUID(0xa),
+ error: new DOMException('Insufficient encryption.',
+ 'NetworkError')
+}, {
+ testName: 'A read or write operation was requested with an invalid offset.',
+ uuid: errorUUID(0xb),
+ error: new DOMException('Offset invalid.',
+ 'NetworkError')
+}, {
+ testName: 'GATT read operation is not permitted.',
+ uuid: errorUUID(0xc),
+ error: new DOMException('Read not permitted.',
+ 'NetworkError')
+}, {
+ testName: 'The given request is not supported.',
+ uuid: errorUUID(0xd),
+ error: new DOMException('Request not supported.',
+ 'NetworkError')
+}, {
+ testName: 'GATT write operation is not permitted.',
+ uuid: errorUUID(0xe),
+ error: new DOMException('Write not permitted.',
+ 'NetworkError')
}].forEach(testSpec => {
promise_test(() => {
testRunner.setBluetoothMockDataSet('FailingConnectionsAdapter');

Powered by Google App Engine
This is Rietveld 408576698