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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/netinfo/resources/web-worker.js
diff --git a/LayoutTests/netinfo/resources/web-worker.js b/LayoutTests/netinfo/resources/web-worker.js
index 32b8bc40acb7e437ee3f1227f9682163e55144bc..ee7656db62f67081cde49f17669a504d71159a7c 100644
--- a/LayoutTests/netinfo/resources/web-worker.js
+++ b/LayoutTests/netinfo/resources/web-worker.js
@@ -1,7 +1,7 @@
addEventListener('message', function(e) {
- self.postMessage(navigator.connection.type);
+ self.postMessage(navigator.connection.type + ',' + navigator.connection.downlinkMax);
}, false);
-navigator.connection.addEventListener('typechange', function() {
- self.postMessage(navigator.connection.type);
-}, false);
+navigator.connection.addEventListener('change', function() {
+ self.postMessage(navigator.connection.type + ',' + navigator.connection.downlinkMax);
+}, false);
« 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