blob: 958b3a57d008cc9fe2f480f67a7cbedd61c03aa0 [file] [log] [blame]
<!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(() => {
return setBluetoothFakeAdapter('FailingConnectionsAdapter')
.then(() => requestDeviceWithKeyDown({
filters: [{services: [errorUUID(0x1) /* in progress error */]}]}))
.then(device => {
device.gatt.connect();
})
.then(runGarbageCollection);
}, 'Garbage collection ran during a connect call that fails. ' +
'Should not crash.');
</script>