Index: third_party/WebKit/LayoutTests/http/tests/loading/doc-write-async-third-party-script.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/loading/doc-write-async-third-party-script.html b/third_party/WebKit/LayoutTests/http/tests/loading/doc-write-async-third-party-script.html |
index 47e276301c37005bed06f88f48762091ff206e99..4abfca4b7fed00d5e95f6423bc1dea113149075f 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/loading/doc-write-async-third-party-script.html |
+++ b/third_party/WebKit/LayoutTests/http/tests/loading/doc-write-async-third-party-script.html |
@@ -8,12 +8,11 @@ |
var loadSuccess = false; |
if (window.internals) { |
internals.settings.setDisallowFetchForDocWrittenScriptsInMainFrameOnSlowConnections(true); |
- internals.setNetworkStateNotifierTestOnly(true); |
- internals.setNetworkConnectionInfo('cellular2g', 2.0); |
+ internals.setNetworkConnectionInfoOverride(true, 'cellular2g', 2.0); |
internals.evictAllResources(); |
window.addEventListener('beforeunload', function() { |
- internals.setNetworkStateNotifierTestOnly(false); |
+ internals.clearNetworkConnectionInfoOverride(); |
internals.settings.setDisallowFetchForDocWrittenScriptsInMainFrameOnSlowConnections(false); |
}, false); |
} |