Commit bc34071d authored by Sriram's avatar Sriram Committed by Commit Bot

Upstream track-webvtt-tc[016-020]-*.html tests

Upstream the below tests from media/track/ to wpt
1. track-webvtt-tc016-align-positioning.html
2. track-webvtt-tc017-line-position.html
3. track-webvtt-tc018-align-text-line-position.html
4. track-webvtt-tc019-cue-size.html
5. track-webvtt-tc020-cue-size-align.html

Bug: 782555
Change-Id: I09431fad43b9dc574f14d7ca8387aa38587c5825
Reviewed-on: https://chromium-review.googlesource.com/821990Reviewed-by: default avatarFredrik Söderquist <fs@opera.com>
Commit-Queue: srirama chandra sekhar <srirama.m@samsung.com>
Cr-Commit-Position: refs/heads/master@{#523385}
parent 31c78ffa
<!DOCTYPE html>
<title>Tests cue text position and alignment from settings.</title>
<title>Cue text position and alignment from settings</title>
<script src="track-helpers.js"></script>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<video>
<track src="captions-webvtt/tc016-align-positioning.vtt">
<track src="captions-webvtt/tc016-align-positioning-bad.vtt">
<track src="resources/align-positioning.vtt">
<track src="resources/align-positioning-bad.vtt">
</video>
<script>
async_test(function(t) {
......
<!DOCTYPE html>
<title>Tests cue alignment, line and text position from settings.</title>
<title>Cue alignment, line and text position from settings</title>
<script src="track-helpers.js"></script>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<video>
<track src="captions-webvtt/tc018-align-text-line-position.vtt">
<track src="captions-webvtt/tc018-align-text-line-position-bad.vtt">
<track src="resources/align-text-line-position.vtt">
<track src="resources/align-text-line-position-bad.vtt">
</video>
<script>
async_test(function(t) {
......
<!DOCTYPE html>
<title>Tests cue size and alignment from settings.</title>
<title>Cue size and alignment from settings</title>
<script src="track-helpers.js"></script>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
check_cues_from_track("captions-webvtt/tc020-cue-size-align.vtt", function(track) {
check_cues_from_track("resources/cue-size-align.vtt", function(track) {
var expected = [
{ size: 100, align: "start" },
{ size: 10, align: "end" },
......@@ -14,7 +14,7 @@ check_cues_from_track("captions-webvtt/tc020-cue-size-align.vtt", function(track
assert_cues_match(track.cues, expected);
});
check_cues_from_track("captions-webvtt/tc020-cue-size-align-bad.vtt", function(track) {
check_cues_from_track("resources/cue-size-align-bad.vtt", function(track) {
var expected = [
{ size: 100, align: "center" },
{ size: 100, align: "end" },
......
<!DOCTYPE html>
<title>Tests cue size from settings.</title>
<title>Cue size from settings</title>
<script src="track-helpers.js"></script>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
check_cues_from_track("captions-webvtt/tc019-cue-size.vtt", function(track) {
check_cues_from_track("resources/cue-size.vtt", function(track) {
var expected = [
{ size: 100 },
{ size: 10 },
......@@ -14,7 +14,7 @@ check_cues_from_track("captions-webvtt/tc019-cue-size.vtt", function(track) {
assert_cues_match(track.cues, expected);
});
check_cues_from_track("captions-webvtt/tc019-cue-size-bad.vtt", function(track) {
check_cues_from_track("resources/cue-size-bad.vtt", function(track) {
var expected = [
{ size: 100 },
{ size: 100 },
......
<!DOCTYPE html>
<title>Tests cue line position from settings.</title>
<title>Cue line position from settings</title>
<script src="track-helpers.js"></script>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<video>
<track src="captions-webvtt/tc017-line-position.vtt">
<track src="captions-webvtt/tc017-line-position-bad.vtt">
<track src="resources/line-position.vtt">
<track src="resources/line-position-bad.vtt">
</video>
<script>
async_test(function(t) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment