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

Unified Diff: LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/TextTrack/removeCue.html

Issue 1144143009: W3C Test: Import web-platform-tests/html/semantics (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
Index: LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/TextTrack/removeCue.html
diff --git a/LayoutTests/media/track/opera/interfaces/TextTrack/removeCue.html b/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/TextTrack/removeCue.html
similarity index 78%
copy from LayoutTests/media/track/opera/interfaces/TextTrack/removeCue.html
copy to LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/TextTrack/removeCue.html
index e9f90eb0cd3e3161aee9d668c4fbf9438678d2c9..dc40c367c0507687fb62c7e7bfb5a2384e4af947 100644
--- a/LayoutTests/media/track/opera/interfaces/TextTrack/removeCue.html
+++ b/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/TextTrack/removeCue.html
@@ -1,7 +1,7 @@
<!doctype html>
<title>TextTrack.removeCue()</title>
-<script src=../../../../../resources/testharness.js></script>
-<script src=../../../../../resources/testharnessreport.js></script>
+<script src=../../../../../../../../resources/testharness.js></script>
+<script src=../../../../../../../../resources/testharnessreport.js></script>
<div id=log></div>
<script>
setup(function(){
@@ -27,15 +27,6 @@ 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');
@@ -48,6 +39,9 @@ t.step(function(){
assert_throws('NOT_FOUND_ERR', function() { t1.removeCue(cue); }, 'standalone, remove from t1');
t.done();
});
+ track.onerror = t.step_func(function() {
+ assert_unreached('got error event');
+ });
track.src= 'data:text/vtt,'+encodeURIComponent('WEBVTT\n\n00:00:00.000 --> 00:00:01.000\ntest\n');
track.kind = 'subtitles';
track.track.mode = 'hidden';

Powered by Google App Engine
This is Rietveld 408576698