[refactor] More post-NSS WebCrypto cleanups (utility functions).
[chromium-blink-merge.git] / content / test / data / net_info.html
blobaa3e5e1929f440b2636f699d4bb68d05592bd576
1 <html>
2 <head></head>
3 <script>
5 function getType() {
6 sendValueToTest(navigator.connection.type);
9 function getDownlinkMax() {
10 sendValueToTest(navigator.connection.downlinkMax.toString());
13 function getOnLine() {
14 sendValueToTest(navigator.onLine);
17 function sendValueToTest(value) {
18 window.domAutomationController.setAutomationId(0);
19 window.domAutomationController.send(value);
22 </script>
23 </html>