Index: third_party/WebKit/LayoutTests/bluetooth/characteristic/getDescriptors/gen-gatt-op-disconnect-called-during-error.html |
diff --git a/third_party/WebKit/LayoutTests/bluetooth/script-tests/characteristic/gatt-op-disconnect-called-during-error.js b/third_party/WebKit/LayoutTests/bluetooth/characteristic/getDescriptors/gen-gatt-op-disconnect-called-during-error.html |
similarity index 64% |
copy from third_party/WebKit/LayoutTests/bluetooth/script-tests/characteristic/gatt-op-disconnect-called-during-error.js |
copy to third_party/WebKit/LayoutTests/bluetooth/characteristic/getDescriptors/gen-gatt-op-disconnect-called-during-error.html |
index 2f8363e6186ead4b6b6bea6d71a54ce4679fc00b..cb9fd5c92c04770b0e7fa4ac2f19b68e66fe46f9 100644 |
--- a/third_party/WebKit/LayoutTests/bluetooth/script-tests/characteristic/gatt-op-disconnect-called-during-error.js |
+++ b/third_party/WebKit/LayoutTests/bluetooth/characteristic/getDescriptors/gen-gatt-op-disconnect-called-during-error.html |
@@ -1,3 +1,9 @@ |
+<!-- Generated by //third_party/WebKit/LayoutTests/bluetooth/generate.py --> |
+<!DOCTYPE html> |
+<script src="../../../resources/testharness.js"></script> |
+<script src="../../../resources/testharnessreport.js"></script> |
+<script src="../../../resources/bluetooth/bluetooth-helpers.js"></script> |
+<script> |
'use strict'; |
promise_test(() => { |
let val = new Uint8Array([1]); |
@@ -10,8 +16,7 @@ promise_test(() => { |
.then(service => service.getCharacteristic(errorUUID(0xA1))) |
.then(error_characteristic => { |
let promise = assert_promise_rejects_with_message( |
- error_characteristic.CALLS([ |
- readValue()| writeValue(val)| startNotifications()]), |
+ error_characteristic.getDescriptors(), |
new DOMException( |
'GATT Server disconnected while performing a GATT operation.', |
'NetworkError')); |
@@ -19,5 +24,7 @@ promise_test(() => { |
return promise; |
}); |
}); |
-}, 'disconnect() called during a FUNCTION_NAME call that fails. ' + |
+}, 'disconnect() called during a getDescriptors call that fails. ' + |
'Reject with NetworkError.'); |
+ |
+</script> |