Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Unified Diff: LayoutTests/netinfo/resources/netinfo_common.js

Issue 291203002: Adds NetInfo v3 Web API to Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@netinfo1
Patch Set: Comment typo Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/netinfo/multiple-frames-expected.txt ('k') | LayoutTests/netinfo/unregister-during-event.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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";
« no previous file with comments | « LayoutTests/netinfo/multiple-frames-expected.txt ('k') | LayoutTests/netinfo/unregister-during-event.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698