blob: 2d6a09b9af6d5eee68b60004c2260d0b3f42970a [file] [log] [blame]
<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>