[imsc] added test cases
authorplemieux
Wed, 28 Jan 2015 15:56:13 -0800
changeset 857 60a763272cc3
parent 856 568d495623f3
child 858 13f75a3609ce
[imsc] added test cases
ttml-ww-profiles/testsuite/altText/altText1-img.png
ttml-ww-profiles/testsuite/altText/altText1.ttml
ttml-ww-profiles/testsuite/aspectRatio/aspectRatio5.ttml
ttml-ww-profiles/testsuite/aspectRatio/aspectRatio6-img.png
ttml-ww-profiles/testsuite/aspectRatio/aspectRatio6.ttml
ttml-ww-profiles/testsuite/forcedDisplay/forcedDisplay1.ttml
ttml-ww-profiles/testsuite/linePadding/linePadding1.ttml
ttml-ww-profiles/testsuite/multiRowAlign/multiRowAlign1.ttml
ttml-ww-profiles/testsuite/progressivelyDecodable/progressivelyDecodable1.ttml
ttml-ww-profiles/testsuite/referenceFonts/referenceFonts1-reference.png
ttml-ww-profiles/testsuite/referenceFonts/referenceFonts1.ttml
Binary file ttml-ww-profiles/testsuite/altText/altText1-img.png has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ttml-ww-profiles/testsuite/altText/altText1.ttml	Wed Jan 28 15:56:13 2015 -0800
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<tt xml:lang="en" xmlns="http://www.w3.org/ns/ttml"
+xmlns:tts="http://www.w3.org/ns/ttml#styling"
+xmlns:smpte="http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt"
+xmlns:ittm="http://www.w3.org/ns/ttml/profile/imsc1#metadata" tts:extent="320px 240px">
+	<head>
+		<layout>
+			<region xml:id="area1" tts:origin="80px 60px" tts:extent="160px 120px"/>
+		</layout>
+	</head>
+	<body>
+		<div begin="1s" end="9s" region="area1" smpte:backgroundImage="altText1-img.png">
+          <metadata>
+          <ittm:altText>This text should not be displayed.</ttm:title>
+          </metadata>
+</div>
+	</body>
+</tt>
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ttml-ww-profiles/testsuite/aspectRatio/aspectRatio5.ttml	Wed Jan 28 15:56:13 2015 -0800
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<tt xml:lang="en" xmlns="http://www.w3.org/ns/ttml" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" 
+xmlns:tts="http://www.w3.org/ns/ttml#styling"
+xmlns:ttp="http://www.w3.org/ns/ttml#parameter">
+	<head>
+		<layout>
+			<region xml:id="area1" tts:origin="0% 0%" tts:extent="100% 100%" tts:backgroundColor="green" tts:displayAlign="center" tts:color="white"/>
+		</layout>
+	</head>
+	<body>
+		<div>			
+			<p region="area1" begin="1s" end="9s">This region should fill the entire related video object frame.</p>
+		</div>
+	</body>
+</tt>
Binary file ttml-ww-profiles/testsuite/aspectRatio/aspectRatio6-img.png has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ttml-ww-profiles/testsuite/aspectRatio/aspectRatio6.ttml	Wed Jan 28 15:56:13 2015 -0800
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<tt xml:lang="en" xmlns="http://www.w3.org/ns/ttml"
+xmlns:tts="http://www.w3.org/ns/ttml#styling"
+xmlns:smpte="http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt"
+tts:extent="160px 120px">
+	<head>
+		<layout>
+			<region xml:id="area1" tts:extent="160px 120px"/>
+		</layout>
+	</head>
+	<body>
+		<div begin="1s" end="9s" region="area1" smpte:backgroundImage="aspectRatio6-img.png"/>
+	</body>
+</tt>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ttml-ww-profiles/testsuite/forcedDisplay/forcedDisplay1.ttml	Wed Jan 28 15:56:13 2015 -0800
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<tt xml:lang="en" xmlns="http://www.w3.org/ns/ttml" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" 
+xmlns:tts="http://www.w3.org/ns/ttml#styling"
+xmlns:ttp="http://www.w3.org/ns/ttml#parameter" 
+xmlns:itts="http://www.w3.org/ns/ttml/profile/imsc1#styling">
+	<head>
+		<layout>
+			<region xml:id="area1" tts:origin="20% 70%" tts:extent="60% 20%" tts:backgroundColor="green" tts:textAlign="center" tts:displayAlign="center" tts:color="white"/>
+            <region xml:id="area2" tts:origin="20% 10%" tts:extent="60% 20%" tts:backgroundColor="black" tts:textAlign="center" tts:displayAlign="center" tts:color="white"/>
+		</layout>
+	</head>
+	<body>
+		<div>			
+			<p region="area1" begin="1s" end="9s" itts:forcedDisplay="true" >This text should be displayed in all circumstances.</p>
+            <p region="area2" begin="1s" end="9s">This text should be hidden if the application parameter displayForcedOnlyMode is "true".</p>
+		</div>
+	</body>
+</tt>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ttml-ww-profiles/testsuite/linePadding/linePadding1.ttml	Wed Jan 28 15:56:13 2015 -0800
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<tt xml:lang="en" xmlns="http://www.w3.org/ns/ttml" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" 
+xmlns:tts="http://www.w3.org/ns/ttml#styling"
+xmlns:ttp="http://www.w3.org/ns/ttml#parameter" 
+xmlns:ebutts="urn:ebu:tt:style">
+	<head>
+		<layout>
+			<region xml:id="area1" tts:origin="20% 70%" tts:extent="60% 20%" tts:backgroundColor="green" tts:displayAlign="center" tts:textAlign="start" ebutts:linePadding="0c" tts:color="white"/>
+            <region xml:id="area2" tts:origin="20% 10%" tts:extent="60% 20%" tts:backgroundColor="black" tts:displayAlign="center" tts:textAlign="center" ebutts:linePadding="0.5c" tts:color="white"/>
+		</layout>
+	</head>
+	<body>
+		<div>			
+			<p region="area1" begin="1s" end="9s">
+                Some centered text on two lines<br/>without padding.
+            </p>
+            <p region="area2" begin="1s" end="9s">
+                Some centered text on two lines<br/>with padding.
+            </p>
+		</div>
+	</body>
+</tt>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ttml-ww-profiles/testsuite/multiRowAlign/multiRowAlign1.ttml	Wed Jan 28 15:56:13 2015 -0800
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<tt xml:lang="en" xmlns="http://www.w3.org/ns/ttml" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" 
+xmlns:tts="http://www.w3.org/ns/ttml#styling"
+xmlns:ttp="http://www.w3.org/ns/ttml#parameter" 
+xmlns:ebutts="urn:ebu:tt:style">
+	<head>
+		<layout>
+			<region xml:id="area1" tts:origin="20% 70%" tts:extent="60% 20%" tts:backgroundColor="green" tts:displayAlign="center" tts:textAlign="start" ebutts:multiRowAlign="end" tts:color="white"/>
+            <region xml:id="area2" tts:origin="20% 10%" tts:extent="60% 20%" tts:backgroundColor="black" tts:displayAlign="center" tts:textAlign="center" ebutts:multiRowAlign="start" tts:color="white"/>
+		</layout>
+	</head>
+	<body>
+		<div>			
+			<p region="area1" begin="1s" end="9s">
+                Beware the Jabberwock, my son!<br/>The jaws that bite, the claws that catch!
+            </p>
+            <p region="area2" begin="1s" end="9s">
+                Beware the Jubjub bird, and shun<br/>The frumious Bandersnatch!
+            </p>
+		</div>
+	</body>
+</tt>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ttml-ww-profiles/testsuite/progressivelyDecodable/progressivelyDecodable1.ttml	Wed Jan 28 15:56:13 2015 -0800
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<tt xml:lang="en" xmlns="http://www.w3.org/ns/ttml"
+xmlns:tts="http://www.w3.org/ns/ttml#styling"
+xmlns:ttp="http://www.w3.org/ns/ttml#parameter" 
+xmlns:ittp="http://www.w3.org/ns/ttml/profile/imsc1#parameter"
+ittp:progressivelyDecodable="true">
+	<head>
+		<layout>
+			<region xml:id="area1" tts:origin="10% 80%" tts:extent="80% 10%" tts:backgroundColor="green" tts:displayAlign="center" tts:textAlign="center" tts:color="white"/>
+		</layout>
+	</head>
+	<body>
+		<div>			
+			<p region="area1" begin="1s" end="2s">One.</p>
+            <p region="area1" begin="2s" end="3s">Two.</p>
+            <p region="area1" begin="3s" end="4s">Three.</p>
+            <p region="area1" begin="4s" end="5s">Over.</p>
+		</div>
+	</body>
+</tt>
Binary file ttml-ww-profiles/testsuite/referenceFonts/referenceFonts1-reference.png has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ttml-ww-profiles/testsuite/referenceFonts/referenceFonts1.ttml	Wed Jan 28 15:56:13 2015 -0800
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<tt xml:lang="en" xmlns="http://www.w3.org/ns/ttml" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" 
+xmlns:tts="http://www.w3.org/ns/ttml#styling"
+xmlns:ttp="http://www.w3.org/ns/ttml#parameter"
+xmlns:ittp="http://www.w3.org/ns/ttml/profile/imsc1#parameter"
+ittp:aspectRatio="4 3">
+	<head>
+		<layout>
+			<region xml:id="area1" tts:origin="12.5% 8.3%" tts:extent="75% 33.3%" tts:fontSize="5%" tts:fontFamily="proportionalSansSerif" tts:lineHeight="100%" tts:backgroundColor="green" tts:displayAlign="center" tts:textAlign="center" tts:color="white"/>
+            <region xml:id="area2" tts:origin="12.5% 58.3%" tts:extent="75% 33.3%" tts:fontSize="5%" tts:fontFamily="monospaceSerif" tts:lineHeight="100%"  tts:backgroundColor="black" tts:displayAlign="center" tts:textAlign="center" tts:color="white"/>
+		</layout>
+	</head>
+	<body>
+		<div>			
+			<p region="area1" begin="1s" end="9s">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vitae tincidunt lacus. Pellentesque quis lorem est. Curabitur a lectus ut diam aliquam volutpat ut id ante. Vestibulum ac congue massa, in ornare velit.</p>
+            <p region="area2" begin="1s" end="9s">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vitae tincidunt lacus. Pellentesque quis lorem est. Curabitur a lectus ut diam aliquam volutpat ut id ant.</p>
+		</div>
+	</body>
+</tt>