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

Unified Diff: LayoutTests/media/track/opera/interfaces/VTTCue/getCueAsHTML.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/VTTCue/getCueAsHTML.html
diff --git a/LayoutTests/media/track/opera/interfaces/TextTrackCue/getCueAsHTML.html b/LayoutTests/media/track/opera/interfaces/VTTCue/getCueAsHTML.html
similarity index 96%
rename from LayoutTests/media/track/opera/interfaces/TextTrackCue/getCueAsHTML.html
rename to LayoutTests/media/track/opera/interfaces/VTTCue/getCueAsHTML.html
index 7b0ccb768649ff239ba11551edd82ead81447ce2..7469459c0bea12220553a90d4bef247f6e7f4eb3 100644
--- a/LayoutTests/media/track/opera/interfaces/TextTrackCue/getCueAsHTML.html
+++ b/LayoutTests/media/track/opera/interfaces/VTTCue/getCueAsHTML.html
@@ -1,5 +1,5 @@
<!doctype html>
-<title>TextTrackCue.getCueAsHTML()</title>
+<title>VTTCue.getCueAsHTML()</title>
<script src=../../../../../resources/testharness.js></script>
<script src=../../../../../resources/testharnessreport.js></script>
<div id=log></div>
@@ -8,7 +8,7 @@ test(function(){
var video = document.createElement('video');
var t1 = video.addTextTrack('subtitles');
document.body.appendChild(video);
- var c1 = new TextTrackCue(0, 1, '<c></c><c.a.b></c><i></i><b></b><u></u><ruby><rt></rt></ruby><v></v><v a b></v><00:00:00.500>x\0');
+ var c1 = new VTTCue(0, 1, '<c></c><c.a.b></c><i></i><b></b><u></u><ruby><rt></rt></ruby><v></v><v a b></v><00:00:00.500>x\0');
t1.addCue(c1);
window.frag = c1.getCueAsHTML();
assert_equals(frag.childNodes.length, 10, 'childNodes.length');

Powered by Google App Engine
This is Rietveld 408576698