New tests
authorPhilippe Le Hégaret <plh@w3.org>
Fri, 05 Dec 2008 14:36:25 +0000
changeset 33 6cfaa909e23c
parent 32 7b510dff82b4
child 34 a71848929172
New tests
testsuite/Styling/LineHeight001.xml
testsuite/Styling/LineHeight002.xml
testsuite/Styling/LineHeight003.xml
testsuite/Styling/TextOutline001.xml
testsuite/Styling/TextOutline002.xml
testsuite/Styling/TextOutline003.xml
testsuite/Styling/TextOutline004.xml
testsuite/Styling/TextOutline005.xml
testsuite/Styling/Visibility001.xml
testsuite/Styling/Visibility002.xml
testsuite/Styling/Visibility003.xml
testsuite/filelist.xml
testsuite/web-framework/tests.js
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/testsuite/Styling/LineHeight001.xml	Fri Dec 05 14:36:25 2008 +0000
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<tt xml:lang="en"
+    xmlns="http://www.w3.org/2006/10/ttaf1"
+    xmlns:tts="http://www.w3.org/2006/10/ttaf1#style"
+    xmlns:ttm="http://www.w3.org/2006/10/ttaf1#metadata">
+  <head>
+    <metadata> 
+      <ttm:title>Styling Test - LineHeight - 001</ttm:title>
+      <ttm:descr>Test tts:lineHeight attribute using the normal value.</ttm:descr>
+      <ttm:copyright>Copyright (C) 2008 W3C (MIT, ERCIM, Keio).</ttm:copyright>
+    </metadata>
+    <styling>
+    	<style id="s1" tts:lineHeight="normal"/>
+    </styling>
+  </head>
+  <body>
+    <div style="s1">
+    	<p begin="0s" end="10s">The line height of this <br />two-row caption is normal.</p>
+    </div>
+  </body>
+</tt>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/testsuite/Styling/LineHeight002.xml	Fri Dec 05 14:36:25 2008 +0000
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<tt xml:lang="en"
+    xmlns="http://www.w3.org/2006/10/ttaf1"
+    xmlns:tts="http://www.w3.org/2006/10/ttaf1#style"
+    xmlns:ttm="http://www.w3.org/2006/10/ttaf1#metadata">
+  <head>
+    <metadata> 
+      <ttm:title>Styling Test - LineHeight - 002</ttm:title>
+      <ttm:descr>Test tts:lineHeight attribute using the normal value in a span.</ttm:descr>
+      <ttm:copyright>Copyright (C) 2008 W3C (MIT, ERCIM, Keio).</ttm:copyright>
+    </metadata>
+    <styling>
+    	<style id="s1" tts:lineHeight="20px"/>
+    </styling>
+  </head>
+  <body>
+    <div style="s1">
+    	<p begin="0s" end="10s" tts:lineHeight="normal">The line height of this <br />two-row caption is normal.</p>
+    </div>
+  </body>
+</tt>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/testsuite/Styling/LineHeight003.xml	Fri Dec 05 14:36:25 2008 +0000
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<tt xml:lang="en"
+    xmlns="http://www.w3.org/2006/10/ttaf1"
+    xmlns:tts="http://www.w3.org/2006/10/ttaf1#style"
+    xmlns:ttm="http://www.w3.org/2006/10/ttaf1#metadata">
+  <head>
+    <metadata> 
+      <ttm:title>Styling Test - LineHeight - 003</ttm:title>
+      <ttm:descr>Test tts:lineHeight attribute using a length value.</ttm:descr>
+      <ttm:copyright>Copyright (C) 2008 W3C (MIT, ERCIM, Keio).</ttm:copyright>
+    </metadata>
+    <styling>
+    	<style id="s1" tts:lineHeight="30px"/>
+    </styling>
+  </head>
+  <body>
+    <div style="s1">
+    	<p begin="0s" end="10s">The line height of this <br />two-row caption is 30 pixels.</p>
+    </div>
+  </body>
+</tt>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/testsuite/Styling/TextOutline001.xml	Fri Dec 05 14:36:25 2008 +0000
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<tt xml:lang="en"
+    xmlns="http://www.w3.org/2006/10/ttaf1"
+    xmlns:tts="http://www.w3.org/2006/10/ttaf1#style"
+    xmlns:ttm="http://www.w3.org/2006/10/ttaf1#metadata">
+  <head>
+    <metadata> 
+      <ttm:title>Styling Test - TextOutline - 001</ttm:title>
+      <ttm:descr>Test tts:textOutline attribute using the none value.</ttm:descr>
+      <ttm:copyright>Copyright (C) 2008 W3C (MIT, ERCIM, Keio).</ttm:copyright>
+    </metadata>
+    <styling>
+    	<style tts:textOutline="red 2px 2px"/>
+    </styling>
+  </head>
+  <body>
+    <div>
+      <p begin="0s" end="10s" tts:textOutline="none" >This text has no outline.</p>
+    </div>
+  </body>
+</tt>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/testsuite/Styling/TextOutline002.xml	Fri Dec 05 14:36:25 2008 +0000
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<tt xml:lang="en"
+    xmlns="http://www.w3.org/2006/10/ttaf1"
+    xmlns:tts="http://www.w3.org/2006/10/ttaf1#style"
+    xmlns:ttm="http://www.w3.org/2006/10/ttaf1#metadata">
+  <head>
+    <metadata> 
+      <ttm:title>Styling Test - TextOutline - 002</ttm:title>
+      <ttm:descr>Test tts:textOutline attribute using a value for outline thickness.</ttm:descr>
+      <ttm:copyright>Copyright (C) 2008 W3C (MIT, ERCIM, Keio).</ttm:copyright>
+    </metadata>
+  </head>
+  <body>
+    <div>
+      <p begin="0s" end="10s" tts:textOutline="3px" >This text has a three-pixel outline that is the same color as the text.</p>
+    </div>
+  </body>
+</tt>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/testsuite/Styling/TextOutline003.xml	Fri Dec 05 14:36:25 2008 +0000
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<tt xml:lang="en"
+    xmlns="http://www.w3.org/2006/10/ttaf1"
+    xmlns:tts="http://www.w3.org/2006/10/ttaf1#style"
+    xmlns:ttm="http://www.w3.org/2006/10/ttaf1#metadata">
+  <head>
+    <metadata> 
+      <ttm:title>Styling Test - TextOutline - 003</ttm:title>
+      <ttm:descr>Test tts:textOutline attribute using values for outline thickness and blur radius.</ttm:descr>
+      <ttm:copyright>Copyright (C) 2008 W3C (MIT, ERCIM, Keio).</ttm:copyright>
+    </metadata>
+  </head>
+  <body>
+    <div>
+      <p begin="0s" end="5s" tts:textOutline="2px 3px" >This text has a two-pixel outline that is the same color as the text,</p>
+
+      <p begin="5s" end="10s" tts:textOutline="2px 3px" >plus a three-pixel blur radius.</p>
+    </div>
+  </body>
+</tt>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/testsuite/Styling/TextOutline004.xml	Fri Dec 05 14:36:25 2008 +0000
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<tt xml:lang="en"
+    xmlns="http://www.w3.org/2006/10/ttaf1"
+    xmlns:tts="http://www.w3.org/2006/10/ttaf1#style"
+    xmlns:ttm="http://www.w3.org/2006/10/ttaf1#metadata">
+  <head>
+    <metadata> 
+      <ttm:title>Styling Test - TextOutline - 004</ttm:title>
+      <ttm:descr>Test tts:textOutline attribute using values for color and outline thickness.</ttm:descr>
+      <ttm:copyright>Copyright (C) 2008 W3C (MIT, ERCIM, Keio).</ttm:copyright>
+    </metadata>
+    <styling>
+    	<style id="s1" tts:textOutline="red 2px"/>
+    </styling>
+  </head>
+  <body>
+    <div style="s1">
+      <p begin="0s" end="5s">This text has a red, two-pixel outline.</p>
+    </div>
+  </body>
+</tt>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/testsuite/Styling/TextOutline005.xml	Fri Dec 05 14:36:25 2008 +0000
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<tt xml:lang="en"
+    xmlns="http://www.w3.org/2006/10/ttaf1"
+    xmlns:tts="http://www.w3.org/2006/10/ttaf1#style"
+    xmlns:ttm="http://www.w3.org/2006/10/ttaf1#metadata">
+  <head>
+    <metadata> 
+      <ttm:title>Styling Test - TextOutline - 005</ttm:title>
+      <ttm:descr>Test tts:textOutline attribute using values for color, outline thickness and blur radius.</ttm:descr>
+      <ttm:copyright>Copyright (C) 2008 W3C (MIT, ERCIM, Keio).</ttm:copyright>
+    </metadata>
+    <styling>
+    	<style id="s1" tts:textOutline="red 3px 2px"/>
+    </styling>
+  </head>
+  <body>
+    <div style="s1">
+            <p begin="0s" end="10s">This text has a red, three-pixel outline<br />and a two-pixel blur radius.</p>
+    </div>
+  </body>
+</tt>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/testsuite/Styling/Visibility001.xml	Fri Dec 05 14:36:25 2008 +0000
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<tt xml:lang="en"
+    xmlns="http://www.w3.org/2006/10/ttaf1"
+    xmlns:tts="http://www.w3.org/2006/10/ttaf1#style"
+    xmlns:ttm="http://www.w3.org/2006/10/ttaf1#metadata">
+  <head>
+    <metadata> 
+      <ttm:title>Styling Test - Visibility - 001</ttm:title>
+      <ttm:descr>Test tts:visibility attribute using the visible value.</ttm:descr>
+      <ttm:copyright>Copyright (C) 2008 W3C (MIT, ERCIM, Keio).</ttm:copyright>
+    </metadata>
+    	<styling>
+    		<style id="s1" tts:visibility="visible"/>
+    	</styling>
+  </head>
+  <body>
+    <div style="s1">
+    	<p begin="0s" end="10s">This text is visible.</p>
+    </div>
+  </body>
+</tt>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/testsuite/Styling/Visibility002.xml	Fri Dec 05 14:36:25 2008 +0000
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<tt xml:lang="en"
+    xmlns="http://www.w3.org/2006/10/ttaf1"
+    xmlns:tts="http://www.w3.org/2006/10/ttaf1#style"
+    xmlns:ttm="http://www.w3.org/2006/10/ttaf1#metadata">
+  <head>
+    <metadata> 
+      <ttm:title>Styling Test - Visibility - 002</ttm:title>
+      <ttm:descr>Test tts:visibility attribute using the visible value.</ttm:descr>
+      <ttm:copyright>Copyright (C) 2008 W3C (MIT, ERCIM, Keio).</ttm:copyright>
+    </metadata>
+    	<styling>
+    		<style 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>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/testsuite/Styling/Visibility003.xml	Fri Dec 05 14:36:25 2008 +0000
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<tt xml:lang="en"
+    xmlns="http://www.w3.org/2006/10/ttaf1"
+    xmlns:tts="http://www.w3.org/2006/10/ttaf1#style"
+    xmlns:ttm="http://www.w3.org/2006/10/ttaf1#metadata">
+  <head>
+    <metadata> 
+      <ttm:title>Styling Test - Visibility - 003</ttm:title>
+      <ttm:descr>Test tts:visibility attribute using the hidden value.</ttm:descr>
+      <ttm:copyright>Copyright (C) 2008 W3C (MIT, ERCIM, Keio).</ttm:copyright>
+    </metadata>
+    	<styling>
+    		<style id="s1" tts:visibility="visible"/>
+    	</styling>
+  </head>
+  <body>
+    <div style="s1">
+    	<p begin="0s" end="10s">The second row of text is invisible:<br /><span tts:visibility="hidden">invisible text</span>.</p>
+    </div>
+  </body>
+</tt>
\ No newline at end of file
--- a/testsuite/filelist.xml	Fri Dec 05 14:33:50 2008 +0000
+++ b/testsuite/filelist.xml	Fri Dec 05 14:36:25 2008 +0000
@@ -1,4 +1,20 @@
 <files>
+<file>Parameters/cellResolution001.xml</file>
+<file>Parameters/clockMode001.xml</file>
+<file>Parameters/clockMode002.xml</file>
+<file>Parameters/clockMode003.xml</file>
+<file>Parameters/frameRate001.xml</file>
+<file>Parameters/frameRate002.xml</file>
+<file>Parameters/frameRateMultiplier001.xml</file>
+<file>Parameters/markerMode001.xml</file>
+<file>Parameters/markerMode002.xml</file>
+<file>Parameters/smpteMode001.xml</file>
+<file>Parameters/smpteMode002.xml</file>
+<file>Parameters/subFrameRate001.xml</file>
+<file>Parameters/tickRate001.xml</file>
+<file>Parameters/timeBase001.xml</file>
+<file>Parameters/timeBase002.xml</file>
+<file>Parameters/timeBase003.xml</file>
 <file>Content/Br001.xml</file>
 <file>Content/Paragraph001.xml</file>
 <file>Content/Paragraph002.xml</file>
@@ -35,6 +51,10 @@
 <file>Styling/Color007.xml</file>
 <file>Styling/Color008.xml</file>
 <file>Styling/Color009.xml</file>
+<file>Styling/LineHeight001.xml</file>
+<file>Styling/LineHeight002.xml</file>
+<file>Styling/LineHeight003.xml</file>
+<file>Styling/LineHeight004.xml</file>
 <file>Styling/Padding001.xml</file>
 <file>Styling/Padding002.xml</file>
 <file>Styling/Padding003.xml</file>
@@ -63,6 +83,16 @@
 <file>Styling/TextDecoration010.xml</file>
 <file>Styling/TextDecoration011.xml</file>
 <file>Styling/TextDecoration012.xml</file>
+<file>Styling/TextOutline001.xml</file>
+<file>Styling/TextOutline002.xml</file>
+<file>Styling/TextOutline003.xml</file>
+<file>Styling/TextOutline004.xml</file>
+<file>Styling/TextOutline005.xml</file>
+<file>Styling/TextOutline006.xml</file>
+<file>Styling/Visibility001.xml</file>
+<file>Styling/Visibility002.xml</file>
+<file>Styling/Visibility003.xml</file>
+<file>Styling/Visibility004.xml</file>
 <file>Timing/BeginDur001.xml</file>
 <file>Timing/BeginEnd001.xml</file>
 <file>Timing/BeginEnd002.xml</file>
--- a/testsuite/web-framework/tests.js	Fri Dec 05 14:33:50 2008 +0000
+++ b/testsuite/web-framework/tests.js	Fri Dec 05 14:36:25 2008 +0000
@@ -1,3 +1,19 @@
+addTest("../Parameters/cellResolution001.xml","cellResolution001","Test ttp:cellResolution attribute","Parameter Test");
+addTest("../Parameters/clockMode001.xml","clockMode001","Test ttp:clockMode attribute","Parameter Test");
+addTest("../Parameters/clockMode002.xml","clockMode002","Test ttp:clockMode attribute","Parameter Test");
+addTest("../Parameters/clockMode003.xml","clockMode003","Test ttp:clockMode attribute","Parameter Test");
+addTest("../Parameters/frameRate001.xml","frameRate001","Test ttp:frameRate attribute","Parameter Test");
+addTest("../Parameters/frameRate002.xml","frameRate002","Test ttp:frameRate attribute","Parameter Test");
+addTest("../Parameters/frameRateMultiplier001.xml","frameRateMultiplier001","Test ttp:frameRateMultiplier attribute","Parameter Test");
+addTest("../Parameters/markerMode001.xml","markerMode001","Test ttp:markerMode attribute","Parameter Test");
+addTest("../Parameters/markerMode002.xml","markerMode002","Test ttp:markerMode attribute","Parameter Test");
+addTest("../Parameters/smpteMode001.xml","smpteMode001","Test ttp:smpteMode attribute","Parameter Test");
+addTest("../Parameters/smpteMode002.xml","smpteMode002","Test ttp:smpteMode attribute","Parameter Test");
+addTest("../Parameters/subFrameRate001.xml","subFrameRate001","Test ttp:subFrameRate attribute","Parameter Test");
+addTest("../Parameters/tickRate001.xml","tickRate001","Test ttp:tickRate attribute","Parameter Test");
+addTest("../Parameters/timeBase001.xml","timeBase001","Test ttp:timeBase attribute","Parameter Test");
+addTest("../Parameters/timeBase002.xml","timeBase002","Test ttp:timeBase attribute","Parameter Test");
+addTest("../Parameters/timeBase003.xml","timeBase003","Test ttp:timeBase attribute","Parameter Test");
 addTest("../Content/Br001.xml","Br001","Test the br element.","Content Test");
 addTest("../Content/Paragraph001.xml","Paragraph001","Test the p element with no styling attribute.","Content Test");
 addTest("../Content/Paragraph002.xml","Paragraph002","Test the p element with no timing attributes (nothing is displayed).","Content Test");
@@ -34,6 +50,10 @@
 addTest("../Styling/Color007.xml","Color007","Test tts:color attribute using a transparent value.","Styling Test");
 addTest("../Styling/Color008.xml","Color008","Test tts:color attribute with span elements.","Styling Test");
 addTest("../Styling/Color009.xml","Color009","Test tts:color style using a named color expression.","Styling Test");
+addTest("../Styling/LineHeight001.xml","LineHeight001","Test tts:lineHeight attribute using the normal value.","Styling Test");
+addTest("../Styling/LineHeight002.xml","LineHeight002","Test tts:lineHeight attribute using the normal value in a span.","Styling Test");
+addTest("../Styling/LineHeight003.xml","LineHeight003","Test tts:lineHeight attribute using a length value.","Styling Test");
+addTest("../Styling/LineHeight004.xml","LineHeight004","Test tts:lineHeight attribute using the inherit value.","Styling Test");
 addTest("../Styling/Padding001.xml","Padding001","Test tts:padding attribute with one value.","Styling Test");
 addTest("../Styling/Padding002.xml","Padding002","Test tts:padding attribute with two values.","Styling Test");
 addTest("../Styling/Padding003.xml","Padding003","Test tts:padding attribute with three values.","Styling Test");
@@ -62,6 +82,16 @@
 addTest("../Styling/TextDecoration010.xml","TextDecoration010","Test tts:textDecoration attribute with the overline value.","Styling Test");
 addTest("../Styling/TextDecoration011.xml","TextDecoration011","Test tts:textDecoration attribute with the noOverline value.","Styling Test");
 addTest("../Styling/TextDecoration012.xml","TextDecoration012","Test tts:textDecoration attribute with the inherit value.","Styling Test");
+addTest("../Styling/TextOutline001.xml","TextOutline001","Test tts:textOutline attribute using the none value.","Styling Test");
+addTest("../Styling/TextOutline002.xml","TextOutline002","Test tts:textOutline attribute using a value for outline thickness.","Styling Test");
+addTest("../Styling/TextOutline003.xml","TextOutline003","Test tts:textOutline attribute using values for outline thickness and blur radius.","Styling Test");
+addTest("../Styling/TextOutline004.xml","TextOutline004","Test tts:textOutline attribute using values for color and outline thickness.","Styling Test");
+addTest("../Styling/TextOutline005.xml","TextOutline005","Test tts:textOutline attribute using values for color, outline thickness and blur radius.","Styling Test");
+addTest("../Styling/TextOutline006.xml","TextOutline006","Test tts:textOutline attribute using the inherit value.","Styling Test");
+addTest("../Styling/Visibility001.xml","Visibility001","Test tts:visibility attribute using the visible value.","Styling Test");
+addTest("../Styling/Visibility002.xml","Visibility002","Test tts:visibility attribute using the visible value.","Styling Test");
+addTest("../Styling/Visibility003.xml","Visibility003","Test tts:visibility attribute using the hidden value.","Styling Test");
+addTest("../Styling/Visibility004.xml","Visibility004","Test tts:visibility attribute using the inherit value.","Styling Test");
 addTest("../Timing/BeginDur001.xml","BeginDur001","Test the begin and dur attributes on p elements.","Timing Test");
 addTest("../Timing/BeginEnd001.xml","BeginEnd001","Test the begin and end attributes on p elements.","Timing Test");
 addTest("../Timing/BeginEnd002.xml","BeginEnd002","Test the begin attribute with no end or dur attribute on p elements.","Timing Test");