| Index: third_party/WebKit/LayoutTests/bluetooth/requestDevice/no-devices.html
|
| diff --git a/third_party/WebKit/LayoutTests/bluetooth/requestDevice/no-devices.html b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/no-devices.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ab898e2737d412a2819cfeae798460955873cc52
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/no-devices.html
|
| @@ -0,0 +1,15 @@
|
| +<!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';
|
| +promise_test(() => {
|
| + return setBluetoothFakeAdapter('EmptyAdapter')
|
| + .then(() => assert_promise_rejects_with_message(
|
| + requestDeviceWithKeyDown({filters: [{services: ['generic_access']}]}),
|
| + new DOMException('User cancelled the requestDevice() chooser.',
|
| + 'NotFoundError'),
|
| + 'No Bluetooth devices in range.'));
|
| +}, 'Reject with NotFoundError if there are no devices around.');
|
| +</script>
|
|
|