| Index: LayoutTests/netinfo/unregister-during-event.html
|
| diff --git a/LayoutTests/netinfo/unregister-during-event.html b/LayoutTests/netinfo/unregister-during-event.html
|
| index 9d614ee689b5c78ae3891fa07d365ff468d3f095..7325f8827ef799baa3e5f50352c90bdbc75eaa07 100644
|
| --- a/LayoutTests/netinfo/unregister-during-event.html
|
| +++ b/LayoutTests/netinfo/unregister-during-event.html
|
| @@ -13,18 +13,21 @@ shouldBe('typeof window.internals.observeGC', '"function"',
|
|
|
| var otherHandler = function(e) {
|
| shouldBe('connection.type', 'initialType');
|
| + shouldBe('connection.downlinkMax', 'initialDownlinkMax');
|
| +
|
| finishJSTest();
|
| };
|
|
|
| var handler = function(e) {
|
| shouldBe('connection.type', 'newConnectionType');
|
| - connection.removeEventListener('typechange', handler);
|
| - connection.addEventListener('typechange', otherHandler);
|
| - internals.setNetworkConnectionInfo(initialType);
|
| + shouldBe('connection.downlinkMax', 'newDownlinkMax');
|
| + connection.removeEventListener('change', handler);
|
| + connection.addEventListener('change', otherHandler);
|
| + internals.setNetworkConnectionInfo(initialType, initialDownlinkMax);
|
| };
|
|
|
| -connection.addEventListener('typechange', handler);
|
| -internals.setNetworkConnectionInfo(newConnectionType);
|
| +connection.addEventListener('change', handler);
|
| +internals.setNetworkConnectionInfo(newConnectionType, newDownlinkMax);
|
|
|
| </script>
|
| </body>
|
|
|