OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <title>TextTrackList.getTrackById</title> |
| 3 <script src=../../../../../resources/testharness.js></script> |
| 4 <script src=../../../../../resources/testharnessreport.js></script> |
| 5 <div id=log></div> |
| 6 <script> |
| 7 test(function(){ |
| 8 var video = document.createElement('video'); |
| 9 var track1 = video.addTextTrack('subtitles'); |
| 10 var track2 = video.addTextTrack('subtitles'); |
| 11 assert_equals(track1.id, ''); |
| 12 assert_equals(track2.id, ''); |
| 13 assert_equals(video.textTracks.getTrackById(''), track1); |
| 14 assert_equals(video.textTracks.getTrackById('fake-id'), null); |
| 15 }); |
| 16 </script> |
OLD | NEW |