Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /bluetooth/legacy/device/forget/connect-after-forget.https.window.html - WPT Dashboard Interop Dashboard
// META: script=/resources/testdriver.js
// META: script=/resources/testdriver-vendor.js
// META: script=/bluetooth/resources/bluetooth-test.js
// META: script=/bluetooth/resources/bluetooth-fake-devices.js
bluetooth_test(async (t) => {
const { device } = await getConnectedHealthThermometerDevice();
await device.forget();
await promise_rejects_dom(t, 'SecurityError', device.gatt.connect());
}, 'gatt.connect() rejects after forget().');