SMIL 3.0 Testcases


Introduction

This document collects testcases for the new features introduced in SMIL 3.0

1- Testcases for the new features introduced in SMIL 3.0.

1 - Animation

animation-test-01.smil

Test Feature Expected Behaviour
1.1
discrete animation with fill="remove" and no end (baseline)
Open as Text
Open as SMIL
t= 0 to t= 3: top-left t= 3 to t= 6: bottom-left t= 6 to t= 9: bottom-middle t= 9 to t=12: bottom-right t=12 to t=15: top-left

animation-test-02.smil

Test Feature Expected Behaviour
1.2
discrete animation with fill="freeze" and no end
Open as Text
Open as SMIL
t= 0 to t= 3: top-left t= 3 to t= 6: bottom-left t= 6 to t= 9: bottom-middle t= 9 to t=15: bottom-right

animation-test-03.smil

Test Feature Expected Behaviour
1.3
discrete animation with fill="remove" and short end
Open as Text
Open as SMIL
t= 0 to t= 3: top-left t= 3 to t= 6: bottom-left t= 6 to t=15: top-left

animation-test-04.smil

Test Feature Expected Behaviour
1.4
discrete animation with fill="freeze" and short end
Open as Text
Open as SMIL
t= 0 to t= 3: top-left t= 3 to t= 6: bottom-left t= 6 to t=15: bottom-middle

animation-test-05.smil

Test Feature Expected Behaviour
1.5
discrete animation with fill="remove" and short min and shorter end
Open as Text
Open as SMIL
t= 0 to t= 3: top-left t= 3 to t= 6: bottom-left t= 6 to t= 9: bottom-middle t= 9 to t=15: top-left

animation-test-06.smil

Test Feature Expected Behaviour
1.6
discrete animation with fill="freeze" and short min and shorter end
Open as Text
Open as SMIL
t= 0 to t= 3: top-left t= 3 to t= 6: bottom-left t= 6 to t= 9: bottom-middle t= 9 to t=15: bottom-right

animation-test-07.smil

Test Feature Expected Behaviour
1.7
discrete animation with fill="remove" and short end and long min
Open as Text
Open as SMIL
t= 0 to t= 3: top-left t= 3 to t= 6: bottom-left t= 6 to t= 9: bottom-middle t= 9 to t=12: bottom-right t=12 to t=15: top-left

animation-test-08.smil

Test Feature Expected Behaviour
1.8
discrete animation with fill="freeze" and short end and long min
Open as Text
Open as SMIL
t= 0 to t= 3: top-left t= 3 to t= 6: bottom-left t= 6 to t= 9: bottom-middle t= 9 to t=15: bottom-right

animation-test-09.smil

Test Feature Expected Behaviour
1.9
discrete animation with fill="remove" repeatCount="2" and no min
Open as Text
Open as SMIL
3 seconds top-left then repeated once (i.e. played twice): 3 seconds bottom-left 3 seconds bottom-middle 3 seconds bottom-right then 6 seconds top-left

animation-test-10.smil

Test Feature Expected Behaviour
1.10
discrete animation with fill="freeze" repeatCount="2" and no min
Open as Text
Open as SMIL
3 seconds top-left then repeated once (i.e. played twice): 3 seconds bottom-left 3 seconds bottom-middle 3 seconds bottom-right then 6 more seconds bottom-right

animation-test-11.smil

Test Feature Expected Behaviour
1.11
discrete animation with fill="remove" repeatCount="2" and min
Open as Text
Open as SMIL
3 seconds top-left then repeated once (i.e. played twice): 3 seconds bottom-left 3 seconds bottom-middle 3 seconds bottom-right then 6 seconds top-left (3 seconds for min, 3 seconds for fill)

animation-test-12.smil

Test Feature Expected Behaviour
1.12
discrete animation with fill="freeze" repeatCount="2" and min
Open as Text
Open as SMIL
3 seconds top-left then repeated once (i.e. played twice): 3 seconds bottom-left 3 seconds bottom-middle 3 seconds bottom-right then 6 more seconds bottom-right (3 seconds for min, 3 seconds for fill)

2 - ContentControl

smil30-smilContentControl-NoallowReorder.smil

Test Feature Expected Behaviour
2.1
allowReorder=no
Open as Text
Open as SMIL
The configuration of the User Agent is "fr; q=1.0, en; q=0.5" and english.jpg is shown.

smil30-smilContentControl-allowReorder.smil

Test Feature Expected Behaviour
2.2
allowReorder=yes
Open as Text
Open as SMIL
The configuration of the User Agent is "fr; q=1.0, en; q=0.5" and french.jpg is shown.

3 - Layout

layout-background-opacity-region-override.smil

Test Feature Expected Behaviour
3.1
backgroundOpacity
Open as Text
Open as SMIL
A 640px by 640px base canvas is displayed with a red background color (#FF0000), and a region is displayed in the upper left corner to exactly a quarter of the size of the base canvas. This region is displayed with a blue background set at 50% opacity, therefore resulting in the #7f0080 color. At 5s, a text media (text.txt) displays inside this region and overrides the background opacity to 0.75, resulting in the #4000bf color. The text ends after 5s, resulting in the region's background color returning to its original blue background at 0.5 opacity (#7f0080). Another 2 reference regions are displayed to compare the expected color in the first region: the on in the lower-right corner uses a 75% blue background, the one in the lower-left corner uses a plain solid background at #4000bf (both these additional comparison regions should look exactly the same, as #4000bf is the color obtained with blue 75% opaque on a red background). 2 images are provided to represent the expected visuals from the test described above: the first one named "ColorQuad_NoText.png" corresponds to the stage before the text appears, while "ColorQuad_WithText.png" corresponds to the stage after the text has appeared.

layout-background-opacity-region.smil

Test Feature Expected Behaviour
3.2
backgroundOpacity
Open as Text
Open as SMIL
A 640px by 640px base canvas has a red background color (#FF0000). The geometry of this canvas is divided into 16 non-overlapping squares of equal dimensions (160px by 160px). Each square area is occupied by a single region. Each of these regions test a different combination of background color and background opacity. There is however one exception: the last 2 regions overlap (bottom-right quarter), to test transparent regions overlapping each other. After 5s, an image displays for 5s. The image should not be perceivable when executing this test, as this is an exact visual representation of the color pattern given by the empty 640px by 640px layout (apart from the small watermark text "Image" on the upper right corner). If any difference in color is perceived, then the test is failed. If no difference is visually perceived, the tester should make color measurements (e.g. color picker) after a full 10s to make sure that the color values conform to the expected values.

4 - Media

FancyPanZoomDemo.smil

Test Feature Expected Behaviour
4.1
panZoom attribute animation
Open as Text
Open as SMIL
The presentation does Ken Burns style animation 5 times: from the full image to different crops. The accompanying text describes what should be seen.

MediaOpacityExtra.smil

Test Feature Expected Behaviour
4.2
panZoom attribute animation
Open as Text
Open as SMIL
Many different opacities. The text explains what we should see.

PanZoomDemo.smil

Test Feature Expected Behaviour
4.3
panZoom attribute animation
Open as Text
Open as SMIL
The presentation shows a full image and then 5 different crops. full image to different crops. The accompanying text describes what should be seen.

media-pan-zoom-percentages.smil

Test Feature Expected Behaviour
4.4
viewBox, fit
Open as Text
Open as SMIL
the test image (a checkerboard) is shown for 20 seconds with 4 different viewbox/fit combinations. This test uses percentage values instead of absolute values.

media-pan-zoom.smil

Test Feature Expected Behaviour
4.5
viewBox, fit
Open as Text
Open as SMIL
the test image (a checkerboard) is shown for 20 seconds with 4 different viewbox/fit combinations.

mediaObject-chromaKey1.smil

Test Feature Expected Behaviour
4.6
chromaKey attribute
Open as Text
Open as SMIL
Four regions are on a root-layout with a red background color. The upper-left region should show a smiley-face with a light blue background, yellow face, and black features. The upper-right region should have knocked out the blue background and allowed the red root-layout background to show through. The lower-left image should knock out black. The lower-right image should knock out yellow.

mediaObject-chromaKeyOpacity1.smil

Test Feature Expected Behaviour
4.7
chromaKeyOpacity attribute
Open as Text
Open as SMIL
This test is the same as mediaObject-chromaKey1.smil, but instead of using the default chromaKeyOpacity of 0%, it uses a chromaKeyOpacity of 50%.

mediaObject-chromaKeyTolerance1.smil

Test Feature Expected Behaviour
4.8
chromaKeyTolerance attribute
Open as Text
Open as SMIL
This test tries to knock out the light blue background from the smile.jpg image. However, due to JPEG's lossy compression, the blue is not exactly uniform. In the upper-left image, we knock out only the exact color of #7FFFFE. In the upper-right image, we knock out the same color with a tolerance of 3 pixel values around #7FFFFE. In the lower-left image, we knock out the same color with a tolerance of 16, and in the lower-right we knock out the same color with a tolerance of 40.

mediaObject-mediaBackgroundOpacity1.smil

Test Feature Expected Behaviour
4.9
mediaBackgroundOpacity attribute
Open as Text
Open as SMIL
We show the same flash file side-by-side. This flash file has a defined background color of #0000FF. On the left-side we use the display the flash file with the authored background color. However, in the right side, we assign an opacity of 0% to the background color.

mediaObject-mediaBackgroundOpacity2.smil

Test Feature Expected Behaviour
4.10
mediaBackgroundOpacity attribute
Open as Text
Open as SMIL
We show the same flash file side-by-side. This flash file has a defined background color of #0000FF. On the left-side we use the display the flash file with the authored background color. However, in the right side, we assign an opacity of 0% to the background color.

mediaObject-mediaOpacity1.smil

Test Feature Expected Behaviour
4.11
mediaOpacity attribute
Open as Text
Open as SMIL
We have a 640x480 root-layout with a white backgroundColor, on which 4 regions are laid out. In the upper-left region, we display the smile image with a mediaOpacity of 25%. In the upper-right region, we display the smile image with a mediaOpacity of 50%. In the lower-left region, we display the smile image with a mediaOpacity of 75%. In the lower-right region, we display the smile image with a mediaOpacity of 100%.

mediaObject-panZoom1.smil

Test Feature Expected Behaviour
4.12
panZoom attribute
Open as Text
Open as SMIL
We have a 320x240 region with fit="fill" and we want to display a 320x240 window of a 800x600 image in it.

mediaObject-panZoom2.smil

Test Feature Expected Behaviour
4.13
panZoom attribute
Open as Text
Open as SMIL
We have a 320x240 region with fit="fill" and we want to display a 320x240 window of a 800x600 image in it. We do a zoom out in 5 second increments.

mediaObject-panZoom3.smil

Test Feature Expected Behaviour
4.14
panZoom attribute
Open as Text
Open as SMIL
We have a 320x240 region with fit="fill" and we want to display a 320x240 window of a 800x600 image in it. We do a pan across the image in 5 second intervals.

mediaObject-panZoom4.smil

Test Feature Expected Behaviour
4.15
panZoom attribute
Open as Text
Open as SMIL
We have a 320x240 region with fit="fill" and we want to display a 320x240 window of a 800x600 image in it. We do a pan across the image in 5 second intervals.

mediaObject-panZoom5.smil

Test Feature Expected Behaviour
4.16
panZoom attribute
Open as Text
Open as SMIL
We have a 320x240 region with fit="fill" and we want to display a 320x240 window of a 800x600 image in it. We do a pan across the image in 5 second intervals.

mediaObject-panZoom6.smil

Test Feature Expected Behaviour
4.17
panZoom attribute
Open as Text
Open as SMIL
We have a 320x240 region with fit="fill" and we want to display a 320x240 window of a 800x600 image in it.

mediaObject-panZoom7.smil

Test Feature Expected Behaviour
4.18
panZoom attribute
Open as Text
Open as SMIL
We have a 320x240 region with fit="fill" and we want to display a 320x240 window of a 800x600 image in it.

mediaObject-panZoom8.smil

Test Feature Expected Behaviour
4.19
panZoom attribute
Open as Text
Open as SMIL
We have a 320x240 region with fit="fill" and we want to display a 320x240 window of a 800x600 image in it.

5 - Metainformation

metainfo-test1.smil

Test Feature Expected Behaviour
5.1
meta element in the body
Open as Text
Open as SMIL
Text "This node has meta-information" shows.

metainfo-test2.smil

Test Feature Expected Behaviour
5.2
metadata elements in the body
Open as Text
Open as SMIL
Text "This node has metadata-information" shows.

metainfo-test3.smil

Test Feature Expected Behaviour
5.3
element with a label attribute referring to external smil document
not-test-03-label-description.smil
Open as Text
Open as SMIL
Text "This node has a label" shows.

6 - Namespace_and_Doctype

namespace-doctype-test1.smil

Test Feature Expected Behaviour
6.1
DOCTYPE and SMIL 3.0 namespace validation
1 image
Open as Text
Open as SMIL
This should result in the user agent issuing an error.

namespace-doctype-test2.smil

Test Feature Expected Behaviour
6.2
DOCTYPE and SMIL 3.0 namespace validation
1 image
Open as Text
Open as SMIL
User agent should play the file, because the syntax of the namespace attribute value is correct. The image is displayed for 5 seconds.

namespace-doctype-test3.smil

Test Feature Expected Behaviour
6.3
DOCTYPE and SMIL 3.0 namespace validation
1 image
Open as Text
Open as SMIL
the user agent should attempt to play this as a SMIL 1.0 document. - Strict SMIL 1.0 implementations will issue an error on the unknown attribute value. - Permissive SMIL 1.0 implementations may ignore the unknown attribute value, resulting in the end attribute being ignored, and the image and the document having 0 duration, instead of the unresolved duration that it would have in SMIL 3.0.

7 - SMILText

smil30-smiltext-ChangedTextWritingMode.smil

Test Feature Expected Behaviour
7.1
a change in textWritingMode modifies the behaviour of textPlace and textAlign
Open as Text
Open as SMIL
In the first smilText the text should be left aligned and rendered from the top. In the second smilText the text should be rigth aligned and rendered from the bottom

smil30-smiltext-IgnoredTextstyling.smil

Test Feature Expected Behaviour
7.2
A styling attribute is used on an element to which it does not apply (textDirection in p).
Open as Text
Open as SMIL
The document parses and textDirection is ignored.

smil30-smiltext-LateBegin.smil

Test Feature Expected Behaviour
7.3
There are two tevs in a smilText with a begin attribute. The value of the second is smaller than the value of the first
Open as Text
Open as SMIL
Once the second tev is reached the text after this element is rendered inmediately

smil30-smiltext-NextBeyondDur.smil

Test Feature Expected Behaviour
7.4
smilText has a duration and there is a tev with a next beyond that duration
Open as Text
Open as SMIL
Once smilText's dur is reached no more text is rendered.

smil30-smiltext-OverridenTextWrapOptions.smil

Test Feature Expected Behaviour
7.5
textWrapOption is inherited or overriden by smilText or it's content
Open as Text
Open as SMIL
The region has a noWrap behaviour inherited by the first SMILText element. The second SMILText element should wrap its content. The third has two pieces of text in a paragraph and a div and each of them behaves differently

smil30-smiltext-OverridingTextStylingAttributes.smil

Test Feature Expected Behaviour
7.6
textColor, textBackgroundColor, textFontFamily, textFonSize, textFontStyle and textFontWeight at different levels
Open as Text
Open as SMIL
Overriden values should be treated accordingly. The first smilText should behave as stated in the region. The second should override textColor and textBackgroundColor and keep textFontFamily, textFontSize, textFontStyle and textFontWeigh. In the third the first paragraph should be represented with totally new textStyle attributes while the second should respect the values in the region.

smil30-smiltext-br.smil

Test Feature Expected Behaviour
7.7
br validation
Open as Text
Open as SMIL
A break is produced in the middle of the text.

smil30-smiltext-clear.smil

Test Feature Expected Behaviour
7.8
clear validation
Open as Text
Open as SMIL
Some text appears and after a while the text disappears.

smil30-smiltext-div.smil

Test Feature Expected Behaviour
7.9
div and textAlign attribute validation
Open as Text
Open as SMIL
Two blocks of text are rendered. A line break should be performed between these blocks. The first block is left aligned while the second is right aligned.

smil30-smiltext-p.smil

Test Feature Expected Behaviour
7.10
p validation
Open as Text
Open as SMIL
The result is the two pieces of text appear as two independent paragraphs.

smil30-smiltext-spanDirections.smil

Test Feature Expected Behaviour
7.11
spans whithin the same smilText element have opposite directions
Open as Text
Open as SMIL
The text of each span element is printed in the proper direction

smil30-smiltext-spanattributes.smil

Test Feature Expected Behaviour
7.12
span and textColor, textBackgroundColor, textFontFamily, textFonSize, textFontStyle and textFontWeight attributes validation
Open as Text
Open as SMIL
All the text has the default characteristics but that marked with the color red, the black background, the size of 18 pixels, and the italic and bold font.

smil30-smiltext-spantextstyle.smil

Test Feature Expected Behaviour
7.13
span, textStyle and textStyling
Open as Text
Open as SMIL
All the text has the default characteristics but that marked with the color red, the black background, the size of 18 pixels, and the italic and bold font.

smil30-smiltext-tevbegin.smil

Test Feature Expected Behaviour
7.14
tev with begin attribute validation
Open as Text
Open as SMIL
The text appears after 3 seconds.

smil30-smiltext-tevbeginEvents.smil

Test Feature Expected Behaviour
7.15
tev with begin attribute validation. The value of the tev depends on an event generated by another smilText
Open as Text
Open as SMIL
The text appears after 3 seconds.

smil30-smiltext-tevnext.smil

Test Feature Expected Behaviour
7.16
tev with next attribute validation