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

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

Issue 1984023002: Move web-platform-tests to wpt (part 1 of 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/TextTrack/addCue.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/TextTrack/addCue.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/TextTrack/addCue.html
deleted file mode 100644
index da4e3a184394c8ed8e9171683729caf2983ba913..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/TextTrack/addCue.html
+++ /dev/null
@@ -1,68 +0,0 @@
-<!doctype html>
-<title>TextTrack.addCue()</title>
-<script src=../../../../../../../../resources/testharness.js></script>
-<script src=../../../../../../../../resources/testharnessreport.js></script>
-<div id=log></div>
-<script>
-setup(function(){
- window.video = document.createElement('video');
- document.body.appendChild(video);
-}, {timeout:5000});
-test(function() {
- var t1 = video.addTextTrack('subtitles');
- var t2 = video.addTextTrack('subtitles');
- var c1 = new VTTCue(0, 1, 'text1');
- t1.addCue(c1);
- t2.addCue(c1);
- assert_equals(c1.track, t2);
-}, document.title+', adding a cue to two different tracks');
-test(function() {
- var t1 = video.addTextTrack('subtitles');
- var c1 = new VTTCue(0, 1, 'text1');
- t1.addCue(c1);
- assert_equals(c1.track, t1);
- t1.addCue(c1);
- assert_equals(c1.track, t1);
-}, document.title+', adding a cue to a track twice');
-test(function() {
- var t1 = video.addTextTrack('subtitles');
- var t2 = video.addTextTrack('subtitles');
- var c1 = new VTTCue(0, 1, 'text1');
- t1.addCue(c1);
- assert_equals(c1.track, t1);
- t1.removeCue(c1);
- assert_equals(c1.track, null);
- t2.addCue(c1);
- assert_equals(c1.track, t2);
-}, document.title+', adding a removed cue to a different track');
-test(function() {
- var t1 = video.addTextTrack('subtitles');
- var c1 = new VTTCue(0, 1, 'text1');
- t1.addCue(c1);
- assert_equals(t1.cues.length, 1, 't1.cues.length after first addition');
- t1.removeCue(c1);
- assert_equals(t1.cues.length, 0, 't1.cues.length after removal');
- 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');
-
-var t = async_test(document.title+', adding a cue associated with a track element to other track');
-t.step(function(){
- var t1 = video.addTextTrack('subtitles');
- var track = document.createElement('track');
- track.onload = t.step_func(function(){
- var cue = track.track.cues[0];
- track.track.removeCue(cue);
- t1.addCue(cue);
- assert_equals(cue.track, 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';
- video.appendChild(track);
-});
-</script>

Powered by Google App Engine
This is Rietveld 408576698