Index: third_party/WebKit/LayoutTests/bluetooth/requestDevice/name-missing-device-from-name-empty-filter.html |
diff --git a/third_party/WebKit/LayoutTests/bluetooth/requestDevice/name-missing-device-from-name-empty-filter.html b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/name-missing-device-from-name-empty-filter.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0bbdfe8fb3e12d24a8582247430f84e6ff933351 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/name-missing-device-from-name-empty-filter.html |
@@ -0,0 +1,17 @@ |
+<!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('NoNameHeartRateAdapter') |
+ .then(() => promise_rejects( |
+ t, 'NotFoundError', requestDeviceWithKeyDown({ |
+ filters: [{ |
+ name: '', |
+ services: ['heart_rate'] |
+ }]}))); |
+}, 'An unnamed device can not be obtained by empty name filter.'); |
+</script> |
+ |