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

Side by Side Diff: LayoutTests/netinfo/resources/web-worker.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
OLDNEW
1 addEventListener('message', function(e) { 1 addEventListener('message', function(e) {
2 self.postMessage(navigator.connection.type); 2 self.postMessage(navigator.connection.type + ',' + navigator.connection.down linkMax);
3 }, false); 3 }, false);
4 4
5 navigator.connection.addEventListener('typechange', function() { 5 navigator.connection.addEventListener('change', function() {
6 self.postMessage(navigator.connection.type); 6 self.postMessage(navigator.connection.type + ',' + navigator.connection.down linkMax);
7 }, false); 7 }, false);
OLDNEW
« no previous file with comments | « LayoutTests/netinfo/resources/netinfo_common.js ('k') | LayoutTests/netinfo/type-change-no-listener.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698