blob: 7baf250657914f44ea4f54359035b92dad3afc3d [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(() => {
return assert_promise_rejects_with_message(
requestDeviceWithKeyDown({filters: []}),
new TypeError('Failed to execute \'requestDevice\' on \'Bluetooth\': ' +
'\'filters\' member must be non-empty to find any devices.'));
}, 'An empty |filters| member should result in a TypeError');
</script>