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

Side by Side Diff: third_party/WebKit/LayoutTests/media/track/track-insert-after-load-crash.html

Issue 1927223002: Convert track tests from video-test.js to testharness.js based (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 <html> 2 <title>Tests that inserting a track element immediately after a load() doesn't c rash.</title>
3 <head> 3 <script src="../media-file.js"></script>
4 <script src="../media-file.js"></script> 4 <script src="../../resources/testharness.js"></script>
5 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 5 <script src="../../resources/testharnessreport.js"></script>
6 (Please avoid writing new tests using video-test.js) --> 6 <script>
7 <script src="../video-test.js"></script> 7 async_test(function(t) {
8 </head> 8 var video = document.createElement('video');
9 <body> 9 video.src = findMediaFile('video', '../content/test');
10 <p>Tests that inserting a &lt;track&gt; element immediately after a load() doesn't crash.</p> 10 video.load();
11 <video id="v"></video> 11 video.appendChild(document.createElement('track'));
12 <script> 12 video.onloadedmetadata = t.step_func_done();
13 var v = document.querySelector('#v'); 13 });
14 v.src = findMediaFile('video', '../content/test'); 14 </script>
15 v.load();
16 v.appendChild(document.createElement('track'));
17 v.addEventListener('loadedmetadata', endTest);
18 </script>
19 </body>
20 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698