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

Side by Side Diff: third_party/WebKit/LayoutTests/media/autoplay-with-preload-none.html

Issue 2268373002: clean up media tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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
1 <!doctype html> 1 <!doctype html>
2 <title>autoplay with preload set to none.</title> 2 <title>autoplay with preload set to none.</title>
3 <script src="../resources/testharness.js"></script> 3 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script> 4 <script src="../resources/testharnessreport.js"></script>
5 <script src="media-file.js"></script> 5 <script src="media-file.js"></script>
6 <div id="log"></div>
7 <script> 6 <script>
8 function autoplay_test(tagName, src) 7 function autoplay_test(tagName, src)
9 { 8 {
10 async_test(function(t) 9 async_test(function(t)
11 { 10 {
12 var e = document.createElement(tagName); 11 var e = document.createElement(tagName);
13 e.src = src; 12 e.src = src;
14 e.preload = "none"; 13 e.preload = "none";
15 e.autoplay = true; 14 e.autoplay = true;
16 var actual_events = []; 15 var actual_events = [];
(...skipping 10 matching lines...) Expand all
27 t.done(); 26 t.done();
28 } 27 }
29 })); 28 }));
30 }); 29 });
31 }, tagName + '.autoplay with preload="none"'); 30 }, tagName + '.autoplay with preload="none"');
32 } 31 }
33 32
34 autoplay_test('audio', findMediaFile('audio', 'content/test')); 33 autoplay_test('audio', findMediaFile('audio', 'content/test'));
35 autoplay_test('video', findMediaFile('video', 'content/test')); 34 autoplay_test('video', findMediaFile('video', 'content/test'));
36 </script> 35 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698