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

Side by Side Diff: LayoutTests/netinfo/resources/netinfo_common.js

Issue 1308943005: [NetInfo] Add Blink support for connection.change, connection.downlinkMax, and wimax (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 3 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 unified diff | Download patch
« no previous file with comments | « LayoutTests/netinfo/multiple-frames.html ('k') | LayoutTests/netinfo/resources/web-worker.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 ";
OLDNEW
« no previous file with comments | « LayoutTests/netinfo/multiple-frames.html ('k') | LayoutTests/netinfo/resources/web-worker.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698