Index: third_party/WebKit/LayoutTests/bluetooth/requestDevice/name-empty-device-from-name-wrong-filter.html |
diff --git a/third_party/WebKit/LayoutTests/bluetooth/requestDevice/name-empty-device-from-name-wrong-filter.html b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/name-empty-device-from-name-wrong-filter.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c2aae5592cdbad52ae9ef0da4450d094941ace88 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/name-empty-device-from-name-wrong-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('EmptyNameHeartRateAdapter') |
+ .then(() => promise_rejects( |
+ t, 'NotFoundError', requestDeviceWithKeyDown({ |
+ filters: [{ |
+ name: 'a', |
+ services: ['heart_rate'] |
+ }]}))); |
+}, 'An empty name device is not matched by a filter with a name.'); |
+</script> |
+ |