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

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

Issue 2466273006: Allow metadata preload on cellular connections and disallow autoplay muted for low end devices. (Closed)
Patch Set: add not allowed value Created 4 years, 1 month 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.setNetworkConnectionInfoOverride(true, 'cellular3g', 2.0);
4
5 var video = document.querySelector('video');
6 assert_equals(video.preload, 'none')
7 video.src = 'resources/test-positive-start-time.webm';
8
9 video.onsuspend = t.step_func_done();
10 video.onprogress = t.unreached_func();
11 t.add_cleanup(function() {
12 internals.clearNetworkConnectionInfoOverride();
13 });
14 });
15 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698