blob: 4beb5266b680b4a75d13a4b81aa2e5e6fcfd2d66 [file] [log] [blame]
<!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-test.js"></script>
<script src="/bluetooth/resources/bluetooth-fake-devices.js"></script>
<script>
'use strict';
const test_desc = 'A filter must restrict the devices in some way.';
const expected = new TypeError();
bluetooth_test(
() => assert_promise_rejects_with_message(
requestDeviceWithTrustedClick({filters: [{}]}), expected),
test_desc);
</script>