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

Unified Diff: third_party/WebKit/LayoutTests/media/video-preload-cellular-test.js

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/media/video-preload-cellular-test.js
diff --git a/third_party/WebKit/LayoutTests/media/video-preload-cellular-test.js b/third_party/WebKit/LayoutTests/media/video-preload-cellular-test.js
index 4c47179b54f69393ddfb8fb679400d919901ea40..a5348f3be18e652104d411af736f97058141a9bb 100644
--- a/third_party/WebKit/LayoutTests/media/video-preload-cellular-test.js
+++ b/third_party/WebKit/LayoutTests/media/video-preload-cellular-test.js
@@ -1,7 +1,6 @@
function cellular_preload_test() {
async_test(function(t) {
- internals.setNetworkStateNotifierTestOnly(true);
- internals.setNetworkConnectionInfo('cellular3g', 2.0);
+ internals.setNetworkConnectionInfoOverride(true, 'cellular3g', 2.0);
var video = document.querySelector('video');
assert_equals(video.preload, 'none')
@@ -10,7 +9,7 @@ function cellular_preload_test() {
video.onsuspend = t.step_func_done();
video.onprogress = t.unreached_func();
t.add_cleanup(function() {
- internals.setNetworkStateNotifierTestOnly(false);
+ internals.clearNetworkConnectionInfoOverride();
});
});
}

Powered by Google App Engine
This is Rietveld 408576698