Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/disconnected-device.html |
| diff --git a/third_party/WebKit/LayoutTests/bluetooth/connect/get-same-gatt-server.html b/third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/disconnected-device.html |
| similarity index 57% |
| copy from third_party/WebKit/LayoutTests/bluetooth/connect/get-same-gatt-server.html |
| copy to third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/disconnected-device.html |
| index a5e188544fd6455909500ea0fd26a98e69367ae7..12d7499183adf5fb6f45eac69155eb04815d0ab1 100644 |
| --- a/third_party/WebKit/LayoutTests/bluetooth/connect/get-same-gatt-server.html |
| +++ b/third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/disconnected-device.html |
| @@ -8,10 +8,9 @@ promise_test(() => { |
| return setBluetoothFakeAdapter('HeartRateAdapter') |
| .then(() => requestDeviceWithKeyDown({ |
| filters: [{services: ['heart_rate']}]})) |
| - .then(device => { |
| - return Promise.all([device.gatt.connect(), device.gatt.connect()]) |
| - }).then(gattServers => { |
| - assert_equals(gattServers[0], gattServers[1]); |
| - }); |
| -}, 'Multiple connects should return the same gatt object.'); |
| + .then(device => assert_promise_rejects_with_message( |
| + device.gatt.getPrimaryServices(), |
| + new DOMException('GATT Server is disconnected. Cannot retrieve services.', |
| + 'NetworkError'))); |
| +}, 'Call getPrimaryServices before connecting. Reject with NetworkError.'); |
|
Jeffrey Yasskin
2016/07/28 22:45:14
"Called"
ortuno
2016/07/29 16:11:51
Done.
|
| </script> |