| 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() { | 9 function getDownlinkMax() { |
| 10 sendValueToTest(navigator.connection.downlinkMax.toString()); | 10 sendValueToTest(navigator.connection.downlinkMax.toString()); |
| 11 } | 11 } |
| 12 | 12 |
| 13 function getOnLine() { | 13 function getOnLine() { |
| 14 sendValueToTest(navigator.onLine); | 14 sendValueToTest(navigator.onLine); |
| 15 } | 15 } |
| 16 | 16 |
| 17 function getRtt() { |
| 18 sendValueToTest(navigator.connection.rtt.toString()); |
| 19 } |
| 20 |
| 21 function getDownlink() { |
| 22 sendValueToTest(navigator.connection.downlink.toString()); |
| 23 } |
| 24 |
| 17 function sendValueToTest(value) { | 25 function sendValueToTest(value) { |
| 18 window.domAutomationController.setAutomationId(0); | 26 window.domAutomationController.setAutomationId(0); |
| 19 window.domAutomationController.send(value); | 27 window.domAutomationController.send(value); |
| 20 } | 28 } |
| 21 | 29 |
| 22 </script> | 30 </script> |
| 23 </html> | 31 </html> |
| OLD | NEW |