OLD | NEW |
(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> |
OLD | NEW |