diff options
Diffstat (limited to 'testing/web-platform/tests/bluetooth/device/forget/connect-after-forget.https.window.js')
-rw-r--r-- | testing/web-platform/tests/bluetooth/device/forget/connect-after-forget.https.window.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/web-platform/tests/bluetooth/device/forget/connect-after-forget.https.window.js b/testing/web-platform/tests/bluetooth/device/forget/connect-after-forget.https.window.js new file mode 100644 index 0000000000..0b15b4d060 --- /dev/null +++ b/testing/web-platform/tests/bluetooth/device/forget/connect-after-forget.https.window.js @@ -0,0 +1,11 @@ +// 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().'); |