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

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

Issue 1528843004: Only force preload=none over cellular for http, https, ftp URLs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@media
Patch Set: Created 5 years 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 cellular_preload_test() {
2 async_test(function(t) {
3 internals.setNetworkStateNotifierTestOnly(true);
4 internals.setNetworkConnectionInfo('cellular', 2.0);
5
6 var video = document.querySelector('video');
7 assert_equals(video.preload, 'none')
8 video.src = 'resources/test-positive-start-time.webm';
9
10 video.onsuspend = t.step_func_done();
11 video.onprogress = t.unreached_func();
12 t.add_cleanup(function() {
13 internals.setNetworkStateNotifierTestOnly(false);
14 });
15 });
16 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698