| Index: third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryService/gen-invalid-service-name.html
|
| diff --git a/third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryService/gen-invalid-service-name.html b/third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryService/gen-invalid-service-name.html
|
| index aaa69c88ffa97c0e3057d1ce1b32dcc176ed8572..591757d13338f458628488390625ecc8b6b04651 100644
|
| --- a/third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryService/gen-invalid-service-name.html
|
| +++ b/third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryService/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.getPrimaryService('wrong_name'),
|
| + device.gatt.getPrimaryService('wrong_name'),
|
| new DOMException(
|
| 'Failed to execute \'getPrimaryService\' on ' +
|
| '\'BluetoothRemoteGATTServer\': Invalid Service name: ' +
|
|
|