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