| 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 return setBluetoothFakeAdapter('DisconnectingHealthThermometerAdapter') | 9 return setBluetoothFakeAdapter('DisconnectingHealthThermometerAdapter') |
| 10 .then(() => requestDeviceWithKeyDown({ | 10 .then(() => requestDeviceWithKeyDown({ |
| 11 filters: [{services: ['health_thermometer']}], | 11 filters: [{services: ['health_thermometer']}], |
| 12 optionalServices: [request_disconnection_service_uuid]})) | 12 optionalServices: [request_disconnection_service_uuid]})) |
| 13 .then(device => device.gatt.connect()) | 13 .then(device => device.gatt.connect()) |
| 14 .then(gattServer => { | 14 .then(gattServer => { |
| 15 let characteristics; | 15 let characteristics; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 assert_promise_rejects_with_message( | 47 assert_promise_rejects_with_message( |
| 48 characteristic.stopNotifications(), | 48 characteristic.stopNotifications(), |
| 49 error)); | 49 error)); |
| 50 } | 50 } |
| 51 return promises; | 51 return promises; |
| 52 }); | 52 }); |
| 53 }, 'Calls on characteristics after device disconnects and we reconnect. ' + | 53 }, 'Calls on characteristics after device disconnects and we reconnect. ' + |
| 54 'Should reject with InvalidStateError.'); | 54 'Should reject with InvalidStateError.'); |
| 55 | 55 |
| 56 </script> | 56 </script> |
| OLD | NEW |