| OLD | NEW |
| 1 window.jsTestIsAsync = true; | 1 window.jsTestIsAsync = true; |
| 2 | 2 |
| 3 var connection = navigator.connection; |
| 4 var initialType = "bluetooth"; |
| 5 var initialDownlinkMax = 1.0; |
| 6 var newConnectionType = "ethernet"; |
| 7 var newDownlinkMax = 2.0; |
| 8 |
| 3 // Suppress connection messages information from the host. | 9 // Suppress connection messages information from the host. |
| 4 if (window.internals) { | 10 if (window.internals) { |
| 5 internals.setNetworkStateNotifierTestOnly(true); | 11 internals.setNetworkStateNotifierTestOnly(true); |
| 12 internals.setNetworkConnectionInfo(initialType, initialDownlinkMax); |
| 6 } | 13 } |
| 7 | 14 |
| 8 var connection = navigator.connection; | |
| 9 var initialType = connection.type; | |
| 10 var newConnectionType = connection.type == "bluetooth" ? "ethernet" : "bluetooth
"; | |
| OLD | NEW |