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

Unified Diff: LayoutTests/media/track/opera/interfaces/TextTrack/removeCue.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
Index: LayoutTests/media/track/opera/interfaces/TextTrack/removeCue.html
diff --git a/LayoutTests/media/track/opera/interfaces/TextTrack/removeCue.html b/LayoutTests/media/track/opera/interfaces/TextTrack/removeCue.html
index 7143bd2b1edd01d8e0fcd3a608a2106179e5d29f..e9f90eb0cd3e3161aee9d668c4fbf9438678d2c9 100644
--- a/LayoutTests/media/track/opera/interfaces/TextTrack/removeCue.html
+++ b/LayoutTests/media/track/opera/interfaces/TextTrack/removeCue.html
@@ -27,6 +27,15 @@ test(function() {
t2.removeCue(c1);
}, 'standalone, remove from t2');
}, document.title+', two elementless tracks');
+
+test(function() {
+ var t1 = video.addTextTrack('subtitles');
+ assert_equals(t1.cues.length, 0);
+ assert_throws(new TypeError, function() { t1.removeCue(null); }, 'null');
+ assert_throws(new TypeError, function() { t1.removeCue([]); }, 'non-TextTrackCue');
+ assert_equals(t1.cues.length, 0);
+}, document.title+', invalid values');
+
var t = async_test(document.title+', cue from track element');
t.step(function(){
var t1 = video.addTextTrack('subtitles');
« no previous file with comments | « LayoutTests/media/track/opera/interfaces/TextTrack/addCue.html ('k') | Source/core/html/track/TextTrack.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698