Index: LayoutTests/netinfo/resources/netinfo_common.js |
diff --git a/LayoutTests/netinfo/resources/netinfo_common.js b/LayoutTests/netinfo/resources/netinfo_common.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..07b0617832cddb9a049244fe0156429d3fda7e18 |
--- /dev/null |
+++ b/LayoutTests/netinfo/resources/netinfo_common.js |
@@ -0,0 +1,10 @@ |
+window.jsTestIsAsync = true; |
+ |
+// Suppress connection messages information from the host. |
+if (window.internals) { |
+ internals.setNetworkStateNotifierTestOnly(true); |
+} |
+ |
+var connection = navigator.connection; |
+var initialType = connection.type; |
+var newConnectionType = connection.type == "bluetooth" ? "ethernet" : "bluetooth"; |