Index: third_party/WebKit/LayoutTests/bluetooth/requestDevice/single-filter-single-service.html |
diff --git a/third_party/WebKit/LayoutTests/bluetooth/connect/connection-succeeds.html b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/single-filter-single-service.html |
similarity index 56% |
copy from third_party/WebKit/LayoutTests/bluetooth/connect/connection-succeeds.html |
copy to third_party/WebKit/LayoutTests/bluetooth/requestDevice/single-filter-single-service.html |
index 97321810f6448a46bc4df13cc53d2c90b0ca6940..77205fd20881401901ff07683ca286159a403301 100644 |
--- a/third_party/WebKit/LayoutTests/bluetooth/connect/connection-succeeds.html |
+++ b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/single-filter-single-service.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']}]})) |
+ .then(device => assert_equals(device.name, 'Glucose Device')); |
+}, 'Simple filter selects matching device.'); |
</script> |