Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions testsuite/Third Edition/Animation.ttml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en">
<head>
<metadata>
<ttm:desc>Set backgroundColor</ttm:desc>
</metadata>

</head>
<body>
<div timeContainer="seq">
<p dur="10s" tts:backgroundColor="red" tts:color="white">
<set tts:backgroundColor="blue" begin="5s"/>This background of this sentence should change from red to blue at 5s</p>
</div>
</body>
</tt:tt>
20 changes: 20 additions & 0 deletions testsuite/Third Edition/AnonymousSpanImplicitDuration.ttml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en">
<head>
<metadata>
<ttm:desc>Anonymous span implicit duration</ttm:desc>
</metadata>
</head>
<body>
<div>
<p begin="0s" end="1s" timeContainer="seq" tts:backgroundColor="blue">
This text should not be displayed.
</p>
</div>
<div>
<p begin="0s" end="1s" tts:backgroundColor="blue">
Text should displayed.
</p>
</div>
</body>
</tt:tt>
13 changes: 13 additions & 0 deletions testsuite/Third Edition/Br.ttml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en">
<head>
<metadata>
<ttm:desc>Test the br element.</ttm:desc>
</metadata>
</head>
<body>
<div>
<p begin="0s" end="10s">This text must be on the first line.<br tts:display="none"/>This text on a second line.</p>
</div>
</body>
</tt:tt>
18 changes: 18 additions & 0 deletions testsuite/Third Edition/BrImplicitDuration.ttml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en">
<head>
<metadata>
<ttm:desc>Br implicit duration</ttm:desc>
</metadata>
</head>
<body>
<div>
<p begin="0s" end="1s" timeContainer="seq" tts:backgroundColor="blue">
No text or linebreak<br/>should be displayed.
</p>
<p begin="0s" end="1s" tts:backgroundColor="red">
Text with a linebreak<br/>should be displayed.
</p>
</div>
</body>
</tt:tt>
14 changes: 14 additions & 0 deletions testsuite/Third Edition/Color.ttml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en">
<head>
<metadata>
<ttm:desc>Test tts:color attribute using a rgb() color function with LWSP.</ttm:desc>
</metadata>

</head>
<body>
<div>
<p tts:color="rgb( 0, 128, 0 )" begin="0s" end="10s">This text must be green.</p>
</div>
</body>
</tt:tt>
20 changes: 20 additions & 0 deletions testsuite/Third Edition/Direction.ttml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en">
<head>
<metadata>
<ttm:desc>Test tts:direction on p and span.</ttm:desc>
</metadata>
</head>
<body>
<div>
<p tts:direction="rtl">
<metadata>
<ttm:desc>tts:direction defines weak directionality so the latin script text appears left to right.</ttm:desc>
</metadata>
Left to right<br/>
מימין לשמאל<br/>
<span tts:unicodeBidi="bidiOverride" tts:direction="rtl">Right to left</span>
</p>
</div>
</body>
</tt:tt>
16 changes: 16 additions & 0 deletions testsuite/Third Edition/FontFamily.ttml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?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:ttm="http://www.w3.org/ns/ttml#metadata">
<head>
<metadata>
<ttm:desc>Test tts:fontFamily attribute with LWSP</ttm:desc>
</metadata>
</head>
<body>
<div>
<p begin="0s" end="10s">The last words must be <span tts:fontFamily="InexistantFont, proportionalSerif">using a proportional serif font</span>.</p>
</div>
</body>
</tt>
18 changes: 18 additions & 0 deletions testsuite/Third Edition/FontSizeEmInherited.ttml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en">
<head>
<metadata>
<ttm:desc>Test em units on font size</ttm:desc>
</metadata>
<layout>
<region xml:id="r1" tts:backgroundColor="black"/>
</layout>
</head>
<body>
<div region="r1">
<p>
1c font size<br/>
<span tts:fontSize="2em">Double font size</span></p>
</div>
</body>
</tt:tt>
16 changes: 16 additions & 0 deletions testsuite/Third Edition/FontSizeEmRegion.ttml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en" ttp:cellResolution="10 5">
<head>
<metadata>
<ttm:desc>Test em units on region</ttm:desc>
</metadata>
<layout>
<region xml:id="r1" tts:fontSize="1em" tts:backgroundColor="black"/>
</layout>
</head>
<body>
<div region="r1">
<p>Font size is 1/5 the height of the root container</p>
</div>
</body>
</tt:tt>
13 changes: 13 additions & 0 deletions testsuite/Third Edition/ForwardInterop.ttml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en">
<head tts:fontSize="7.5c">
<metadata>
<ttm:desc>Test TT attributes outside of the content model.</ttm:desc>
</metadata>
</head>
<body>
<div>
<p>This text must not be half the height of the root container.</p>
</div>
</body>
</tt:tt>
16 changes: 16 additions & 0 deletions testsuite/Third Edition/LineHeight.ttml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en">
<head>
<metadata>
<ttm:desc>Test tts:lineHeight attribute using "normal".</ttm:desc>
</metadata>
<layout>
<region xml:id="bottom" tts:origin="10% 10%" tts:extent="80% 80%" />
</layout>
</head>
<body tts:fontSize="2c">
<div>
<p begin="0s" end="10s" region="bottom">The line height of this<br/>two-row caption is "normal".</p>
</div>
</body>
</tt:tt>
17 changes: 17 additions & 0 deletions testsuite/Third Edition/NonInheritedInitial.ttml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en">
<head>
<metadata>
<ttm:desc>Test non-inherited initial style values.</ttm:desc>
</metadata>

<layout>
<tt:region tts:extent="100% 100%" xml:id="r1"/>
</layout>
</head>
<body>
<div>
<p begin="0s" end="10s" region="r1">This text is aligned with<br/>the before edge of the region.</p>
</div>
</body>
</tt:tt>
20 changes: 20 additions & 0 deletions testsuite/Third Edition/PlainSpanImplicitDuration.ttml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en">
<head>
<metadata>
<ttm:desc>Span with only text nodes implicit duration</ttm:desc>
</metadata>
</head>
<body>
<div>
<p begin="0s" end="1s" timeContainer="seq" tts:backgroundColor="blue">
<span>This text should not be displayed.</span>
</p>
</div>
<div>
<p begin="0s" end="1s" tts:backgroundColor="blue">
<span>This text should displayed.</span>
</p>
</div>
</body>
</tt:tt>
22 changes: 22 additions & 0 deletions testsuite/Third Edition/SetImplicitDuration.ttml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en">
<head>
<metadata>
<ttm:desc>Set implicit duration</ttm:desc>
</metadata>
</head>
<body>
<div>
<p begin="0s" end="1s" timeContainer="seq">
<set tts:backgroundColor="blue"/>
<span dur="1s">Background should not be blue.</span>
</p>
</div>
<div>
<p begin="0s" end="1s">
<set tts:backgroundColor="blue"/>
<span dur="1s">Background should be blue.</span>
</p>
</div>
</body>
</tt:tt>
17 changes: 17 additions & 0 deletions testsuite/Third Edition/TextDecoration.ttml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en">
<head>
<metadata>
<ttm:desc>Test tts:textDecoration attribute inheritance.</ttm:desc>
</metadata>

<styling>
<style xml:id="s1" tts:textDecoration="underline lineThrough"/>
</styling>
</head>
<body>
<div style="s1">
<p begin="0s" end="10s">The last two words in this caption are<span tts:textDecoration="noUnderline"> <br/>not underlined.</span></p>
</div>
</body>
</tt:tt>
17 changes: 17 additions & 0 deletions testsuite/Third Edition/TextOutline.ttml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en">
<head>
<metadata>
<ttm:desc>Test tts:textOutline attribute using 'c' value for the outline thickness.</ttm:desc>
</metadata>

<styling>
<style xml:id="s1" tts:fontSize="1c" tts:textOutline="red 0.1c"/>
</styling>
</head>
<body>
<div>
<p begin="0s" end="10s" style="s1">This text has a red outline with a radius equal to 10% of the font size.</p>
</div>
</body>
</tt:tt>
20 changes: 20 additions & 0 deletions testsuite/Third Edition/TwoValueCellFontSize.ttml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en" ttp:cellResolution="30 15">
<head>
<metadata>
<ttm:desc>Test two-value font sizes in 'c' units</ttm:desc>
</metadata>
<layout>
<region xml:id="r1" tts:backgroundColor="black"/>
</layout>
</head>
<body>
<div region="r1">
<p>
<span tts:fontSize="1c">Normal text</span><br/>
<span tts:fontSize="0.5c 1c">Narrow text</span><br/>
<span tts:fontSize="2c 1c">Wide text</span>
</p>
</div>
</body>
</tt:tt>
19 changes: 19 additions & 0 deletions testsuite/Third Edition/TwoValueEmFontSize.ttml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en" ttp:cellResolution="30 15">
<head>
<metadata>
<ttm:desc>Test two-value font sizes in 'em' units</ttm:desc>
</metadata>
<layout>
<region xml:id="r1" tts:backgroundColor="black"/>
</layout>
</head>
<body>
<div region="r1">
<p tts:fontSize="2c 1c">
<span tts:fontSize="1em">Normal text</span><br/>
<span tts:fontSize="1em 1em">Wide text</span>
</p>
</div>
</body>
</tt:tt>
13 changes: 13 additions & 0 deletions testsuite/Third Edition/UnknownTTAtribute.ttml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en">
<head>
<metadata>
<ttm:desc>Test unknown attributes in the TT namespaces.</ttm:desc>
</metadata>
</head>
<body>
<div>
<p tts:foo="7.5c">This text must appear.</p>
</div>
</body>
</tt:tt>
17 changes: 17 additions & 0 deletions testsuite/Third Edition/Visibility.ttml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en">
<head>
<metadata>
<ttm:desc>Test tts:visibility attribute using the visible value.</ttm:desc>
</metadata>

<styling>
<style xml:id="s1" tts:visibility="hidden"/>
</styling>
</head>
<body>
<div style="s1">
<p begin="0s" end="10s"><span tts:visibility="visible">All the words in this caption are visible.</span></p>
</div>
</body>
</tt:tt>
32 changes: 32 additions & 0 deletions testsuite/Third Edition/ZIndex.ttml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<tt:tt xmlns:tt="http://www.w3.org/ns/ttml"
xmlns:ttp="http://www.w3.org/ns/ttml#parameter"
xmlns="http://www.w3.org/ns/ttml"
xmlns:tts="http://www.w3.org/ns/ttml#styling"
xmlns:ttm="http://www.w3.org/ns/ttml#metadata"
ttp:profile="http://www.w3.org/ns/ttml/profile/imsc1/text"
xml:lang="en">
<head>
<metadata>
<ttm:desc>Various values of zIndex; all the values are valid and should yield a visible region. Not intended to test correct drawing order of overlapping regions.</ttm:desc>
</metadata>
<layout>
<tt:region xml:id="r1" tts:extent="100% 100%" tts:backgroundColor="black" tts:zIndex="1000" tts:showBackground="whenActive"/>
<tt:region xml:id="r2" tts:extent="100% 100%" tts:backgroundColor="red" tts:zIndex="1" tts:showBackground="whenActive"/>
<tt:region xml:id="r3" tts:extent="100% 100%" tts:backgroundColor="blue" tts:zIndex="0" tts:showBackground="whenActive"/>
<tt:region xml:id="r4" tts:extent="100% 100%" tts:backgroundColor="green" tts:zIndex="auto" tts:showBackground="whenActive"/>
<tt:region xml:id="r5" tts:extent="100% 100%" tts:backgroundColor="fuchsia" tts:zIndex="-1" tts:showBackground="whenActive"/>
<tt:region xml:id="r6" tts:extent="100% 100%" tts:backgroundColor="gray" tts:zIndex="-1000" tts:showBackground="whenActive"/>
</layout>
</head>
<body>
<div timeContainer="seq">
<p region="r1" begin="0s" end="1s">tts:zIndex="1000"</p>
<p region="r2" begin="0s" end="1s">tts:zIndex="1"</p>
<p region="r3" begin="0s" end="1s">tts:zIndex="0"</p>
<p region="r4" begin="0s" end="1s">tts:zIndex="auto"</p>
<p region="r5" begin="0s" end="1s">tts:zIndex="-1"</p>
<p region="r6" begin="0s" end="1s">tts:zIndex="-1000"</p>
</div>
</body>
</tt:tt>