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

Unified Diff: LayoutTests/netinfo/web-worker.html

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
Index: LayoutTests/netinfo/web-worker.html
diff --git a/LayoutTests/netinfo/web-worker.html b/LayoutTests/netinfo/web-worker.html
index a7e42cfa468ffb8b403161ed2a1f1be0807559d8..7f776075a68b6f7ae31b1465d633945c979d1089 100644
--- a/LayoutTests/netinfo/web-worker.html
+++ b/LayoutTests/netinfo/web-worker.html
@@ -17,16 +17,16 @@ var msg_count = 0;
worker.addEventListener('message', function(e) {
if (msg_count == 0) {
- if (e.data != connection.type) {
+ if (e.data != connection.type + ',' + connection.downlinkMax) {
testFailed("Worker type disagrees with main frame.");
}
- internals.setNetworkConnectionInfo(newConnectionType);
+ internals.setNetworkConnectionInfo(newConnectionType, newDownlinkMax);
} else if (msg_count == 1) {
- if (e.data != newConnectionType)
+ if (e.data != newConnectionType + ',' + newDownlinkMax)
testFailed("Worker switched to wrong connection type.");
- internals.setNetworkConnectionInfo(initialType);
+ internals.setNetworkConnectionInfo(initialType, initialDownlinkMax);
} else if (msg_count == 2) {
- if (e.data != initialType)
+ if (e.data != initialType + ',' + initialDownlinkMax)
testFailed("Worker did not revert back to initial type.");
finishJSTest();
}

Powered by Google App Engine
This is Rietveld 408576698