Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/bluetooth/connect/get-same-gatt-server.html |
| diff --git a/third_party/WebKit/LayoutTests/bluetooth/notifications/stop-without-starting.html b/third_party/WebKit/LayoutTests/bluetooth/connect/get-same-gatt-server.html |
| similarity index 58% |
| copy from third_party/WebKit/LayoutTests/bluetooth/notifications/stop-without-starting.html |
| copy to third_party/WebKit/LayoutTests/bluetooth/connect/get-same-gatt-server.html |
| index 7cbb02923277a8249db0a1bc80b9830129cd2025..a6b580dcffcebabf593d67237fc7e425dbf49f13 100644 |
| --- a/third_party/WebKit/LayoutTests/bluetooth/notifications/stop-without-starting.html |
| +++ b/third_party/WebKit/LayoutTests/bluetooth/connect/get-same-gatt-server.html |
| @@ -8,9 +8,10 @@ promise_test(() => { |
| return setBluetoothFakeAdapter('HeartRateAdapter') |
| .then(() => requestDeviceWithKeyDown({ |
| filters: [{services: ['heart_rate']}]})) |
| - .then(device => device.gatt.connect()) |
| - .then(gattServer => gattServer.getPrimaryService('heart_rate')) |
| - .then(service => service.getCharacteristic('heart_rate_measurement')) |
| - .then(characteristic => characteristic.stopNotifications()); |
| -}, "Stop without starting."); |
| + .then(device => { |
| + return Promise.all([device.gatt.connect(), device.gatt.connect()]) |
| + }).then(gattServers => { |
| + assert_equals(gattServers[0], gattServers[1]); |
| + }); |
| +}); |
|
Jeffrey Yasskin
2016/05/04 00:49:32
Please add a name for this test. Maybe "Multiple c
ortuno
2016/05/04 16:41:50
Done.
|
| </script> |