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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/loading/doc-write-sync-third-party-script-conn-type.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/http/tests/loading/doc-write-sync-third-party-script-conn-type.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/loading/doc-write-sync-third-party-script-conn-type.html b/third_party/WebKit/LayoutTests/http/tests/loading/doc-write-sync-third-party-script-conn-type.html
index 65d0ddd7b0b1cb918e7b3326fd30dc04e3b660f8..e5ec3b8f074668594ffa14a053c3e42423fb0893 100644
--- a/third_party/WebKit/LayoutTests/http/tests/loading/doc-write-sync-third-party-script-conn-type.html
+++ b/third_party/WebKit/LayoutTests/http/tests/loading/doc-write-sync-third-party-script-conn-type.html
@@ -7,12 +7,11 @@
var loadSuccess = false;
if (window.internals) {
internals.settings.setDisallowFetchForDocWrittenScriptsInMainFrameOnSlowConnections(true);
- internals.setNetworkStateNotifierTestOnly(true);
- internals.setNetworkConnectionInfo('cellular3g', 2.0);
+ internals.setNetworkConnectionInfoOverride(true, 'cellular3g', 2.0);
internals.evictAllResources();
window.addEventListener('beforeunload', function() {
- internals.setNetworkStateNotifierTestOnly(false);
+ internals.clearNetworkConnectionInfoOverride();
internals.settings.setDisallowFetchForDocWrittenScriptsInMainFrameOnSlowConnections(false);
}, false);
}

Powered by Google App Engine
This is Rietveld 408576698