| OLD | NEW |
| 1 <!-- Generated by //third_party/WebKit/LayoutTests/bluetooth/generate.py --> | 1 <!-- Generated by //third_party/WebKit/LayoutTests/bluetooth/generate.py --> |
| 2 <!DOCTYPE html> | 2 <!DOCTYPE html> |
| 3 <script src="../../resources/testharness.js"></script> | 3 <script src="../../../resources/testharness.js"></script> |
| 4 <script src="../../resources/testharnessreport.js"></script> | 4 <script src="../../../resources/testharnessreport.js"></script> |
| 5 <script src="../../resources/bluetooth/bluetooth-helpers.js"></script> | 5 <script src="../../../resources/bluetooth/bluetooth-helpers.js"></script> |
| 6 <script> | 6 <script> |
| 7 'use strict'; | 7 'use strict'; |
| 8 promise_test(() => { | 8 promise_test(() => { |
| 9 let val = new Uint8Array([1]); | 9 let val = new Uint8Array([1]); |
| 10 return setBluetoothFakeAdapter('FailingGATTOperationsAdapter') | 10 return setBluetoothFakeAdapter('FailingGATTOperationsAdapter') |
| 11 .then(() => requestDeviceWithKeyDown({ | 11 .then(() => requestDeviceWithKeyDown({ |
| 12 filters: [{services: [errorUUID(0xA0)]}], | 12 filters: [{services: [errorUUID(0xA0)]}], |
| 13 optionalServices: [request_disconnection_service_uuid] | 13 optionalServices: [request_disconnection_service_uuid] |
| 14 })) | 14 })) |
| 15 .then(device => device.gatt.connect()) | 15 .then(device => device.gatt.connect()) |
| (...skipping 10 matching lines...) Expand all Loading... |
| 26 error_characteristic.readValue(), | 26 error_characteristic.readValue(), |
| 27 new DOMException( | 27 new DOMException( |
| 28 'GATT Server disconnected while performing a GATT operation.', | 28 'GATT Server disconnected while performing a GATT operation.', |
| 29 'NetworkError')); | 29 'NetworkError')); |
| 30 }); | 30 }); |
| 31 }); | 31 }); |
| 32 }, 'Device disconnects during a readValue call that fails. ' + | 32 }, 'Device disconnects during a readValue call that fails. ' + |
| 33 'Reject with NetworkError.'); | 33 'Reject with NetworkError.'); |
| 34 | 34 |
| 35 </script> | 35 </script> |
| OLD | NEW |