Index: third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/gen-invalid-service-name.html |
diff --git a/third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/gen-invalid-service-name.html b/third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/gen-invalid-service-name.html |
index 66c9a371b4aea3da662ad8bb469bfc6e97afa689..f8d010bac7785a76bb6c8eebbbb4ca26ef87d209 100644 |
--- a/third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/gen-invalid-service-name.html |
+++ b/third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/gen-invalid-service-name.html |
@@ -8,13 +8,10 @@ |
<script> |
'use strict'; |
promise_test(() => { |
- return setBluetoothFakeAdapter('HeartRateAdapter') |
- .then(() => requestDeviceWithKeyDown({ |
- filters: [{services: ['heart_rate']}]})) |
- .then(device => device.gatt.connect()) |
- .then(gatt => { |
+ return getHealthThermometerDevice() |
+ .then(([device]) => { |
return assert_promise_rejects_with_message( |
- gatt.getPrimaryServices('wrong_name'), |
+ device.gatt.getPrimaryServices('wrong_name'), |
new DOMException( |
'Failed to execute \'getPrimaryServices\' on ' + |
'\'BluetoothRemoteGATTServer\': Invalid Service name: ' + |