Index: third_party/WebKit/LayoutTests/bluetooth/requestDevice/single-filter-two-services-succeeds.html |
diff --git a/third_party/WebKit/LayoutTests/bluetooth/connect/connection-succeeds.html b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/single-filter-two-services-succeeds.html |
similarity index 55% |
copy from third_party/WebKit/LayoutTests/bluetooth/connect/connection-succeeds.html |
copy to third_party/WebKit/LayoutTests/bluetooth/requestDevice/single-filter-two-services-succeeds.html |
index 97321810f6448a46bc4df13cc53d2c90b0ca6940..bf375dd32919dced86b7c7980e208336d2f46079 100644 |
--- a/third_party/WebKit/LayoutTests/bluetooth/connect/connection-succeeds.html |
+++ b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/single-filter-two-services-succeeds.html |
@@ -5,10 +5,9 @@ |
<script> |
'use strict'; |
promise_test(() => { |
- return setBluetoothFakeAdapter('HeartRateAdapter') |
+ return setBluetoothFakeAdapter('GlucoseHeartRateAdapter') |
.then(() => requestDeviceWithKeyDown({ |
- filters: [{services: ['heart_rate']}]})) |
- .then(device => device.gatt.connect()) |
- .then(gattServer => assert_true(gattServer.connected)); |
-}, 'Device will connect'); |
+ filters: [{services: ['glucose', 'tx_power']}] |
+ })).then(device => assert_equals(device.name, 'Glucose Device')); |
+}, 'Filter with 2 services returns a matching device.'); |
</script> |