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

Unified Diff: LayoutTests/media/track/opera/interfaces/TextTrackCue/text.html

Issue 72543003: Update TextTrackCue tests to use VTTCue where appropriate (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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/TextTrackCue/text.html
diff --git a/LayoutTests/media/track/opera/interfaces/TextTrackCue/text.html b/LayoutTests/media/track/opera/interfaces/TextTrackCue/text.html
deleted file mode 100644
index 7c7da8b7357ae1298cc65579fd10a7f7d08c9c39..0000000000000000000000000000000000000000
--- a/LayoutTests/media/track/opera/interfaces/TextTrackCue/text.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<!doctype html>
-<title>TextTrackCue.text</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');
- window.t1 = video.addTextTrack('subtitles');
- document.body.appendChild(video);
-});
-test(function(){
- var c1 = new TextTrackCue(0, 1, 'text1\r\n\n\u0000');
- assert_equals(c1.text, 'text1\r\n\n\u0000');
- c1.text = c1.text;
- assert_equals(c1.text, 'text1\r\n\n\u0000');
- c1.text = null;
- assert_equals(c1.text, 'null');
-}, document.title+', script-created cue');
-
-var t_parsed = async_test(document.title+', parsed cue');
-t_parsed.step(function(){
- var t = document.createElement('track');
- t.onload = this.step_func(function(){
- var c = t.track.cues;
- assert_equals(c[0].text, '');
- assert_equals(c[1].text, 'test');
- this.done();
- });
- t.src = 'data:text/vtt,'+encodeURIComponent('WEBVTT\n\n00:00:00.000 --> 00:00:00.001\n'+
- '\n\nfoobar\n00:00:00.000 --> 00:00:00.001\ntest');
- t.track.mode = 'showing';
- video.appendChild(t);
-});
-</script>

Powered by Google App Engine
This is Rietveld 408576698