| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../resources/testharness.js"></script> | 2 <script src="../../../resources/testharness.js"></script> |
| 3 <script src="../../resources/testharnessreport.js"></script> | 3 <script src="../../../resources/testharnessreport.js"></script> |
| 4 <script src="../../resources/bluetooth/bluetooth-helpers.js"></script> | 4 <script src="../../../resources/bluetooth/bluetooth-helpers.js"></script> |
| 5 <script> | 5 <script> |
| 6 'use strict'; | 6 'use strict'; |
| 7 promise_test(() => { | 7 promise_test(() => { |
| 8 return setBluetoothFakeAdapter('DisconnectingHealthThermometerAdapter') | 8 return setBluetoothFakeAdapter('DisconnectingHealthThermometerAdapter') |
| 9 .then(() => requestDeviceWithKeyDown({ | 9 .then(() => requestDeviceWithKeyDown({ |
| 10 filters: [{services: ['health_thermometer']}]})) | 10 filters: [{services: ['health_thermometer']}]})) |
| 11 .then(device => { | 11 .then(device => { |
| 12 device.gatt.connect(); | 12 device.gatt.connect(); |
| 13 }) | 13 }) |
| 14 .then(runGarbageCollection); | 14 .then(runGarbageCollection); |
| 15 }, 'Garbage Collection ran during a connect call that succeeds. ' + | 15 }, 'Garbage Collection ran during a connect call that succeeds. ' + |
| 16 'Should not crash.'); | 16 'Should not crash.'); |
| 17 </script> | 17 </script> |
| OLD | NEW |