Index: third_party/WebKit/LayoutTests/bluetooth/requestDevice/name-empty-device-from-name-empty-filter.html |
diff --git a/third_party/WebKit/LayoutTests/bluetooth/requestDevice/name-empty-device-from-name-empty-filter.html b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/name-empty-device-from-name-empty-filter.html |
index bf2bfbde0527d321cab77914835a65e7edf9fa17..8e417f0c9bf737fc4daaabcaae7c948587fd9ef5 100644 |
--- a/third_party/WebKit/LayoutTests/bluetooth/requestDevice/name-empty-device-from-name-empty-filter.html |
+++ b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/name-empty-device-from-name-empty-filter.html |
@@ -2,16 +2,15 @@ |
<script src="../../resources/testharness.js"></script> |
<script src="../../resources/testharnessreport.js"></script> |
<script src="../../resources/bluetooth/bluetooth-helpers.js"></script> |
+<script src="../../resources/mojo-helpers.js"></script> |
+<script src="../../resources/bluetooth/web-bluetooth-test.js"></script> |
<script> |
'use strict'; |
promise_test(() => { |
- return setBluetoothFakeAdapter('EmptyNameHeartRateAdapter') |
- .then(() => requestDeviceWithKeyDown({ |
- filters: [{name: ''}], |
- optionalServices: ['generic_access']})) |
- .then(device => { |
- assert_equals(device.name, ''); |
- }) |
+ return setUpPreconnectedDevice({name: ''}) |
+ .then(() => requestDeviceWithKeyDown({filters: [{name: ''}]})) |
+ .then(device => { |
+ assert_equals(device.name, ''); |
+ }); |
}, 'An empty name device can be obtained by empty name filter.'); |
</script> |
- |