https://github.com/web-platform-tests/wpt
Raw File
Tip revision: f9881ffdf4ab4bf774162c8a8230ae6733f7375c authored by Florian Rivoal on 29 March 2018, 05:34:17 UTC
[css-aling] tests for row-gap / column-gap normal
Tip revision: f9881ff
le-not-supported.https.html
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<script src="/bluetooth/resources/bluetooth-helpers.js"></script>
<script>
'use strict';
const test_desc = 'Reject with NotFoundError if Bluetooth is not supported.';
const expected = new DOMException('Bluetooth Low Energy not available.',
    'NotFoundError');

bluetooth_test(() => navigator.bluetooth.test.setLESupported(false)
    .then(() => assert_promise_rejects_with_message(
        requestDeviceWithTrustedClick({acceptAllDevices: true}),
        expected, 'Bluetooth Low Energy is not supported.')),
    test_desc);
</script>
back to top