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

Unified Diff: LayoutTests/media/track/opera/interfaces/TextTrack/addCue.html

Issue 946583002: Add [TypeChecking=Interface] to the TextTrack interface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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/TextTrack/removeCue.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/track/opera/interfaces/TextTrack/addCue.html
diff --git a/LayoutTests/media/track/opera/interfaces/TextTrack/addCue.html b/LayoutTests/media/track/opera/interfaces/TextTrack/addCue.html
index e6eb37ae0b760c05384c2a8835401bbb801bb8ec..635efe8d63853fc3003a84afb9140dcabf23fa52 100644
--- a/LayoutTests/media/track/opera/interfaces/TextTrack/addCue.html
+++ b/LayoutTests/media/track/opera/interfaces/TextTrack/addCue.html
@@ -45,6 +45,13 @@ test(function() {
t1.addCue(c1);
assert_equals(t1.cues.length, 1, 't1.cues.length after second addition');
}, document.title+', adding an associated but removed cue to the same track');
+test(function() {
+ var t1 = video.addTextTrack('subtitles');
+ assert_equals(t1.cues.length, 0);
+ assert_throws(new TypeError, function() { t1.addCue(null); }, 'null');
+ assert_throws(new TypeError, function() { t1.addCue([]); }, 'non-TextTrackCue');
+ assert_equals(t1.cues.length, 0);
+}, document.title+', invalid values');
var t = async_test(document.title+', adding a cue associated with a track element to other track');
t.step(function(){
« no previous file with comments | « no previous file | LayoutTests/media/track/opera/interfaces/TextTrack/removeCue.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698