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

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: Rebase. 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/video-preload-default-cellular.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/video-preload-default-cellular.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698