| <html> | |
| <head></head> | |
| <script> | |
| function getType() { | |
| sendValueToTest(navigator.connection.type); | |
| } | |
| function getDownlinkMax() { | |
| sendValueToTest(navigator.connection.downlinkMax); | |
| } | |
| function getOnLine() { | |
| sendValueToTest(navigator.onLine); | |
| } | |
| function getEffectiveType() { | |
| sendValueToTest(navigator.connection.effectiveType); | |
| } | |
| function getRtt() { | |
| sendValueToTest(navigator.connection.rtt); | |
| } | |
| function getDownlink() { | |
| sendValueToTest(navigator.connection.downlink); | |
| } | |
| function getSaveData() { | |
| sendValueToTest(navigator.connection.saveData); | |
| } | |
| function sendValueToTest(value) { | |
| window.domAutomationController.send(value); | |
| } | |
| </script> | |
| </html> |