OLD | NEW |
1 <html> | 1 <html> |
2 <head></head> | 2 <head></head> |
3 <script> | 3 <script> |
4 | 4 |
5 function getType() { | 5 function getType() { |
6 sendValueToTest(navigator.connection.type); | 6 sendValueToTest(navigator.connection.type); |
7 } | 7 } |
8 | 8 |
| 9 function getDownlinkMax() { |
| 10 sendValueToTest(navigator.connection.downlinkMax.toString()); |
| 11 } |
| 12 |
9 function getOnLine() { | 13 function getOnLine() { |
10 sendValueToTest(navigator.onLine); | 14 sendValueToTest(navigator.onLine); |
11 } | 15 } |
12 | 16 |
13 function sendValueToTest(value) { | 17 function sendValueToTest(value) { |
14 window.domAutomationController.setAutomationId(0); | 18 window.domAutomationController.setAutomationId(0); |
15 window.domAutomationController.send(value); | 19 window.domAutomationController.send(value); |
16 } | 20 } |
17 | 21 |
18 </script> | 22 </script> |
19 </html> | 23 </html> |
OLD | NEW |