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

Side by Side 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, 5 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 unified diff | Download patch
OLDNEW
1 function cellular_preload_test() { 1 function cellular_preload_test() {
2 async_test(function(t) { 2 async_test(function(t) {
3 internals.setNetworkStateNotifierTestOnly(true); 3 internals.setNetworkConnectionInfoOverride(true, 'cellular3g', 2.0);
4 internals.setNetworkConnectionInfo('cellular3g', 2.0);
5 4
6 var video = document.querySelector('video'); 5 var video = document.querySelector('video');
7 assert_equals(video.preload, 'none') 6 assert_equals(video.preload, 'none')
8 video.src = 'resources/test-positive-start-time.webm'; 7 video.src = 'resources/test-positive-start-time.webm';
9 8
10 video.onsuspend = t.step_func_done(); 9 video.onsuspend = t.step_func_done();
11 video.onprogress = t.unreached_func(); 10 video.onprogress = t.unreached_func();
12 t.add_cleanup(function() { 11 t.add_cleanup(function() {
13 internals.setNetworkStateNotifierTestOnly(false); 12 internals.clearNetworkConnectionInfoOverride();
14 }); 13 });
15 }); 14 });
16 } 15 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698