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

Unified Diff: LayoutTests/media/track/track-cue-rendering-position-auto-rtl.html

Issue 851333003: WebVTT: Update cue alignment to a later spec. version (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added test. Created 5 years, 11 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/track-cue-rendering-position-auto-rtl.html
diff --git a/LayoutTests/media/track/track-cue-rendering-position-auto.html b/LayoutTests/media/track/track-cue-rendering-position-auto-rtl.html
similarity index 69%
copy from LayoutTests/media/track/track-cue-rendering-position-auto.html
copy to LayoutTests/media/track/track-cue-rendering-position-auto-rtl.html
index ddf9422ffb451054a64b991ed0544c6255f5ad6a..10c433f33c844af42fc24cb4a65c9370aac2982d 100644
--- a/LayoutTests/media/track/track-cue-rendering-position-auto.html
+++ b/LayoutTests/media/track/track-cue-rendering-position-auto-rtl.html
@@ -3,9 +3,9 @@
<script>
var mediaFile = findMediaFile('video', '../content/test');
-function addTrackWithCueData(video, cueData) {
+function addTrackWithRtlCueData(video, cueData) {
var track = video.addTextTrack('subtitles');
- var cue = new VTTCue(0, 10, 'XXX');
+ var cue = new VTTCue(0, 10, '\u05d0\u05d1\u05d2');
for (var prop in cueData)
cue[prop] = cueData[prop];
track.addCue(cue);
@@ -22,21 +22,21 @@ video::cue {
<video>
<script>
var video = document.currentScript.parentNode;
- addTrackWithCueData(video, { align: 'start', line: 0 });
+ addTrackWithRtlCueData(video, { align: 'start', size: 50, line: 0 });
video.src = mediaFile;
</script>
</video>
<video>
<script>
var video = document.currentScript.parentNode;
- addTrackWithCueData(video, { align: 'middle', line: 0 });
+ addTrackWithRtlCueData(video, { align: 'middle', size: 50, line: 0 });
video.src = mediaFile;
</script>
</video>
<video>
<script>
var video = document.currentScript.parentNode;
- addTrackWithCueData(video, { align: 'end', line: 0 });
+ addTrackWithRtlCueData(video, { align: 'end', size: 50, line: 0 });
video.src = mediaFile;
</script>
</video>

Powered by Google App Engine
This is Rietveld 408576698