Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <title>Test muted autoplay videos interaction with data saver on</title> | |
| 5 <script src="../resources/testharness.js"></script> | |
| 6 <script src="../resources/testharnessreport.js"></script> | |
| 7 <script src="media-file.js"></script> | |
| 8 </head> | |
| 9 <body> | |
| 10 <script> | |
| 11 window.internals.settings.setMediaPlaybackRequiresUserGesture(true); | |
| 12 window.internals.runtimeFlags.videosAsImagesEnabled = true; | |
| 13 window.internals.settings.setDataSaverEnabled(true); | |
|
whywhat
2016/06/08 20:47:37
I think the names of the tests are not in sync wit
mlamouri (slow - plz ping)
2016/06/09 13:11:48
Thanks for catching this! :)
| |
| 14 | |
| 15 async_test(function(t) | |
|
whywhat
2016/06/08 20:47:37
consider using promise_test()?
should be somethin
mlamouri (slow - plz ping)
2016/06/09 13:11:48
I switched to promise_test.
| |
| 16 { | |
| 17 var video = document.createElement('video'); | |
| 18 video.src = findMediaFile('video', 'content/test'); | |
| 19 video.muted = true; | |
| 20 video.play().then(function() { | |
| 21 assert_notreached("play() should not succeed"); | |
| 22 }, t.step_func_done()); | |
| 23 }); | |
| 24 </script> | |
| 25 </body> | |
| 26 </html> | |
| OLD | NEW |