| Index: LayoutTests/netinfo/basic-operation.html
|
| diff --git a/LayoutTests/netinfo/basic-operation.html b/LayoutTests/netinfo/basic-operation.html
|
| index 3809b807f3c4222d4b04dab983163c20a033466a..95585aeab9b7b802e6ffd83df5f9a4dcf56d53ee 100644
|
| --- a/LayoutTests/netinfo/basic-operation.html
|
| +++ b/LayoutTests/netinfo/basic-operation.html
|
| @@ -12,14 +12,23 @@ shouldBe('typeof window.internals.observeGC', '"function"',
|
|
|
| shouldBeDefined("navigator.connection");
|
| shouldBeDefined("navigator.connection.type");
|
| +shouldBeDefined("navigator.connection.downlinkMax");
|
|
|
| connection.addEventListener('typechange', function(e) {
|
| shouldBe("typeof connection.type", '"string"');
|
| shouldBe('connection.type', 'newConnectionType');
|
| + shouldBe('connection.downlinkMax', 'newDownlinkMax');
|
| finishJSTest();
|
| });
|
|
|
| -internals.setNetworkConnectionInfo(newConnectionType);
|
| +connection.addEventListener('change', function(e) {
|
| + shouldBe("typeof connection.type", '"string"');
|
| + shouldBe('connection.type', 'newConnectionType');
|
| + shouldBe('connection.downlinkMax', 'newDownlinkMax');
|
| + finishJSTest();
|
| +});
|
| +
|
| +internals.setNetworkConnectionInfo(newConnectionType, newDownlinkMax);
|
|
|
| </script>
|
| </body>
|
|
|