| Index: third_party/WebKit/LayoutTests/bluetooth/connectGATT.html
|
| diff --git a/third_party/WebKit/LayoutTests/bluetooth/connectGATT.html b/third_party/WebKit/LayoutTests/bluetooth/connectGATT.html
|
| index 28a46a8c4b1b95137b5ea2b0e8b1dcf8727f9790..55c695bcdc297cbd79adcad08441a28f32e2fa27 100644
|
| --- a/third_party/WebKit/LayoutTests/bluetooth/connectGATT.html
|
| +++ b/third_party/WebKit/LayoutTests/bluetooth/connectGATT.html
|
| @@ -123,4 +123,17 @@ promise_test(() => {
|
| .then(device => device.connectGATT())
|
| .then(gattServer => assert_true(gattServer.connected));
|
| }, 'Device will connect');
|
| +
|
| +promise_test(() => {
|
| + testRunner.setBluetoothMockDataSet('');
|
| + testRunner.setBluetoothMockDataSet('HeartRateAdapter');
|
| + return requestDeviceWithKeyDown({filters: [{services: ['heart_rate']}]})
|
| + .then(device => {
|
| + return Promise.all([device.connectGATT(), device.connectGATT()])
|
| + }).then(gattServers => {
|
| + // connectGATT should return the same object if it was created earlier.
|
| + // TODO(ortuno): change to assert_equals.
|
| + assert_not_equals(gattServers[0], gattServers[1]);
|
| + });
|
| +});
|
| </script>
|
|
|