| Index: third_party/WebKit/LayoutTests/bluetooth/requestDevice/canonicalizeFilter/empty-filter.html
|
| diff --git a/third_party/WebKit/LayoutTests/bluetooth/requestDevice/canonicalizeFilter/empty-filter.html b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/canonicalizeFilter/empty-filter.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9cbfced6cf5de245483362b5510dfc0b09c66b3c
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/canonicalizeFilter/empty-filter.html
|
| @@ -0,0 +1,12 @@
|
| +<!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(t => {
|
| + return setBluetoothFakeAdapter('EmptyAdapter')
|
| + .then(() => promise_rejects(
|
| + t, new TypeError(), requestDeviceWithKeyDown({filters: [{}]})));
|
| +}, 'A filter must restrict the devices in some way.');
|
| +</script>
|
|
|