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

Unified Diff: LayoutTests/media/track/opera/interfaces/TextTrackList/getTrackById.html

Issue 336523002: Sync TextTrackList.getTrackById IDL with spec and test it (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/media/track/opera/interfaces/TextTrackList/getTrackById-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/track/opera/interfaces/TextTrackList/getTrackById.html
diff --git a/LayoutTests/media/track/opera/interfaces/TextTrackList/getTrackById.html b/LayoutTests/media/track/opera/interfaces/TextTrackList/getTrackById.html
new file mode 100644
index 0000000000000000000000000000000000000000..543f5d6a33daea00e17bc960a05189dad07f9f4c
--- /dev/null
+++ b/LayoutTests/media/track/opera/interfaces/TextTrackList/getTrackById.html
@@ -0,0 +1,16 @@
+<!doctype html>
+<title>TextTrackList.getTrackById</title>
+<script src=../../../../../resources/testharness.js></script>
+<script src=../../../../../resources/testharnessreport.js></script>
+<div id=log></div>
+<script>
+test(function(){
+ var video = document.createElement('video');
+ var track1 = video.addTextTrack('subtitles');
+ var track2 = video.addTextTrack('subtitles');
+ assert_equals(track1.id, '');
+ assert_equals(track2.id, '');
+ assert_equals(video.textTracks.getTrackById(''), track1);
+ assert_equals(video.textTracks.getTrackById('fake-id'), null);
+});
+</script>
« no previous file with comments | « no previous file | LayoutTests/media/track/opera/interfaces/TextTrackList/getTrackById-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698