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

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

Issue 1381613003: Defer media loading while on cellular networks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 5 years, 2 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
(Empty)
1 function CellularPreloadTest(preloadType) {
philipj_slow 2015/10/21 11:11:29 LayoutTests/media/video-controls-fullscreen.js sho
DaleCurtis 2015/10/21 22:34:32 lowercase_for_the_win().
2 return function(t) {
3 internals.setNetworkStateNotifierTestOnly(true);
4 internals.setNetworkConnectionInfo('cellular', 2.0);
5
6 var video = document.createElement('video');
7 if (preloadType)
8 video.preload = preloadType;
philipj_slow 2015/10/21 11:11:29 After this line, can you also assert_equals(video.
DaleCurtis 2015/10/21 22:34:32 Done.
9 video.src = 'resources/test-positive-start-time.webm';
10
11 video.onsuspend = t.step_func_done();
12 video.onprogress = t.unreached_func();
13 t.add_cleanup(function() {
14 internals.setNetworkStateNotifierTestOnly(false);
15 });
16 }
17 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698