Index: LayoutTests/netinfo/resources/netinfo_common.js |
diff --git a/LayoutTests/netinfo/resources/netinfo_common.js b/LayoutTests/netinfo/resources/netinfo_common.js |
index 07b0617832cddb9a049244fe0156429d3fda7e18..57e3c45dbb900469f8e26a8143963197d5680536 100644 |
--- a/LayoutTests/netinfo/resources/netinfo_common.js |
+++ b/LayoutTests/netinfo/resources/netinfo_common.js |
@@ -1,10 +1,14 @@ |
window.jsTestIsAsync = true; |
+var connection = navigator.connection; |
+var initialType = "bluetooth"; |
+var initialDownlinkMax = 1.0; |
+var newConnectionType = "ethernet"; |
+var newDownlinkMax = 2.0; |
+ |
// Suppress connection messages information from the host. |
if (window.internals) { |
internals.setNetworkStateNotifierTestOnly(true); |
+ internals.setNetworkConnectionInfo(initialType, initialDownlinkMax); |
} |
-var connection = navigator.connection; |
-var initialType = connection.type; |
-var newConnectionType = connection.type == "bluetooth" ? "ethernet" : "bluetooth"; |