| Index: third_party/WebKit/LayoutTests/presentation/resources/presentation-receiver-close-connection.html
|
| diff --git a/third_party/WebKit/LayoutTests/presentation/resources/presentation-receiver-close-connection.html b/third_party/WebKit/LayoutTests/presentation/resources/presentation-receiver-close-connection.html
|
| index 1bf738a981a222cab81da4baa5a19f0b533610d1..84295feeb1af6adb3ba556467e6d27437f9719cc 100644
|
| --- a/third_party/WebKit/LayoutTests/presentation/resources/presentation-receiver-close-connection.html
|
| +++ b/third_party/WebKit/LayoutTests/presentation/resources/presentation-receiver-close-connection.html
|
| @@ -27,11 +27,16 @@ presentationServiceMock.then(mockService => {
|
| const connection = list.connections[0];
|
| connection.onclose = () => {
|
| assert_equals(connection.state, 'closed');
|
| - opener.postMessage('receiver connection closed', '*');
|
| + setTimeout(() => {
|
| + assert_equals(list.connections.length, 0);
|
| + opener.postMessage('receiver connection closed', '*');
|
| + } ,0);
|
| };
|
| opener.postMessage('receiver connection ready', '*');
|
| if (shouldCallClose) {
|
| - connection.close();
|
| + list.connections.forEach(theConnection => {
|
| + theConnection.close();
|
| + });
|
| }
|
| });
|
| });
|
|
|