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

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

Issue 2087293003: [DevTools] Network.emulateNetworkConditions now affects NetworkStateNotifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dcheck Created 4 years, 6 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/web-worker.html
diff --git a/third_party/WebKit/LayoutTests/netinfo/web-worker.html b/third_party/WebKit/LayoutTests/netinfo/web-worker.html
index 7f776075a68b6f7ae31b1465d633945c979d1089..cdb0c1d6325cc6da4eb6bc99c0f9ec91370aa23d 100644
--- a/third_party/WebKit/LayoutTests/netinfo/web-worker.html
+++ b/third_party/WebKit/LayoutTests/netinfo/web-worker.html
@@ -20,11 +20,11 @@ worker.addEventListener('message', function(e) {
if (e.data != connection.type + ',' + connection.downlinkMax) {
testFailed("Worker type disagrees with main frame.");
}
- internals.setNetworkConnectionInfo(newConnectionType, newDownlinkMax);
+ internals.setNetworkConnectionInfoOverride(isTypeOnline(newConnectionType), newConnectionType, newDownlinkMax);
} else if (msg_count == 1) {
if (e.data != newConnectionType + ',' + newDownlinkMax)
testFailed("Worker switched to wrong connection type.");
- internals.setNetworkConnectionInfo(initialType, initialDownlinkMax);
+ internals.setNetworkConnectionInfoOverride(isTypeOnline(initialType), initialType, initialDownlinkMax);
} else if (msg_count == 2) {
if (e.data != initialType + ',' + initialDownlinkMax)
testFailed("Worker did not revert back to initial type.");

Powered by Google App Engine
This is Rietveld 408576698