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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/webfont/font-display-intervention.html

Issue 2087293003: [DevTools] Network.emulateNetworkConditions now affects NetworkStateNotifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: browser test 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/webfont/font-display-intervention.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/webfont/font-display-intervention.html b/third_party/WebKit/LayoutTests/http/tests/webfont/font-display-intervention.html
index 1d2d0a7633a7beb706d909aaa4f8337e92879c60..42e20f18e350edfb2ba00cf504d808840f95ad7b 100644
--- a/third_party/WebKit/LayoutTests/http/tests/webfont/font-display-intervention.html
+++ b/third_party/WebKit/LayoutTests/http/tests/webfont/font-display-intervention.html
@@ -22,12 +22,11 @@ if (window.testRunner)
// 2G cellular networks will cause an User-Agent Intervention.
// Under the situation, 'auto' should behave as 'swap'.
if (window.internals) {
- internals.setNetworkStateNotifierTestOnly(true);
- internals.setNetworkConnectionInfo('cellular2g', 1.0);
+ internals.setNetworkConnectionInfoOverride(true, 'cellular2g', 1.0);
// Reset the state of the singleton network state notifier.
window.addEventListener('beforeunload', function() {
- internals.setNetworkStateNotifierTestOnly(false);
+ internals.clearNetworkConnectionInfoOverride();
}, false);
}

Powered by Google App Engine
This is Rietveld 408576698