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

Unified Diff: third_party/WebKit/LayoutTests/netinfo/resources/web-worker.js

Issue 2903493002: NetInfo network quality extension: Add callbacks and Layout tests (Closed)
Patch Set: haraken comments Created 3 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
Index: third_party/WebKit/LayoutTests/netinfo/resources/web-worker.js
diff --git a/third_party/WebKit/LayoutTests/netinfo/resources/web-worker.js b/third_party/WebKit/LayoutTests/netinfo/resources/web-worker.js
index ee7656db62f67081cde49f17669a504d71159a7c..ef6891bf3df8363ab873e87808f8c6fe29044f73 100644
--- a/third_party/WebKit/LayoutTests/netinfo/resources/web-worker.js
+++ b/third_party/WebKit/LayoutTests/netinfo/resources/web-worker.js
@@ -1,7 +1,7 @@
addEventListener('message', function(e) {
- self.postMessage(navigator.connection.type + ',' + navigator.connection.downlinkMax);
+ self.postMessage(navigator.connection.type + ',' + navigator.connection.downlinkMax + ',' + navigator.connection.effectiveType + ',' + navigator.connection.rtt + ',' + navigator.connection.downlink);
}, false);
navigator.connection.addEventListener('change', function() {
- self.postMessage(navigator.connection.type + ',' + navigator.connection.downlinkMax);
+ self.postMessage(navigator.connection.type + ',' + navigator.connection.downlinkMax + ',' + navigator.connection.effectiveType + ',' + navigator.connection.rtt + ',' + navigator.connection.downlink);
}, false);

Powered by Google App Engine
This is Rietveld 408576698