| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 1 <!-- Generated by //third_party/WebKit/LayoutTests/bluetooth/generate.py --> | 
|  | 2 <!DOCTYPE html> | 
|  | 3 <script src="../../../resources/testharness.js"></script> | 
|  | 4 <script src="../../../resources/testharnessreport.js"></script> | 
|  | 5 <script src="../../../resources/bluetooth/bluetooth-helpers.js"></script> | 
|  | 6 <script> | 
|  | 7 'use strict'; | 
|  | 8 promise_test(() => { | 
|  | 9   let val = new Uint8Array([1]); | 
|  | 10   return setBluetoothFakeAdapter('DisconnectingHealthThermometerAdapter') | 
|  | 11       .then( | 
|  | 12           () => requestDeviceWithKeyDown( | 
|  | 13               {filters: [{services: ['health_thermometer']}]})) | 
|  | 14       .then(device => device.gatt.connect()) | 
|  | 15       .then(gattServer => gattServer.getPrimaryService('health_thermometer')) | 
|  | 16       .then(service => service.getCharacteristic('measurement_interval')) | 
|  | 17       .then( | 
|  | 18           characteristic => characteristic.getDescriptor(user_description.name)) | 
|  | 19       .then(descriptor => { | 
|  | 20         return setBluetoothFakeAdapter('MissingServiceHeartRateAdapter') | 
|  | 21             .then( | 
|  | 22                 () => assert_promise_rejects_with_message( | 
|  | 23                     descriptor.readValue(), | 
|  | 24                     new DOMException( | 
|  | 25                         'GATT Service no longer exists.', 'InvalidStateError'), | 
|  | 26                     'Service got removed.')); | 
|  | 27       }); | 
|  | 28 }, 'Service gets removed. Reject with InvalidStateError.'); | 
|  | 29 | 
|  | 30 </script> | 
| OLD | NEW | 
|---|