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

Side by Side Diff: third_party/WebKit/LayoutTests/media/video-force-preload-none.html

Issue 2344353003: Force preload=none and disable autoplay on lowend Android devices. (Closed)
Patch Set: Fix enum namespace. Created 4 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 <!doctype html>
2 <title>Tests that the document setting for forcing preload none works.</title>
3 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script>
5 <video preload="metadata"></video>
6 <script>
7 async_test(function(t) {
8 internals.settings.setForcePreloadNoneForMediaElements(true);
9
10 var video = document.querySelector('video');
11 assert_equals(video.preload, 'none');
12 video.src = 'resources/test-positive-start-time.webm';
13
14 video.onsuspend = t.step_func_done();
15 video.onprogress = t.unreached_func();
16 t.add_cleanup(function() {
17 internals.settings.setForcePreloadNoneForMediaElements(false);
18 });
19 });
20 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698