SMIL 2.0 Layout Module
(report template )
Test #
Feature Test (test file)
Expected Behavior
1
layout attributes
1.1
Tests deprecated
background-color, values of fit
(smil ,
source )
Show smile in windows which use (right to left, top to bottom): fill, hidden,
meet, slice
fill: image stretched to fill region, no background color red visible.
hidden: image aligned to upper left, lower right filled with blue.
meet: image scaled to touch sides, top and bottom filled with green.
slice: image scaled top bottom edges touch, sides overflow region.
1.2
Tests
backgroundColor, values of fit
(smil ,
source )
Show smile in windows which use (right to left, top to bottom): fill, hidden,
meet, slice
fill: image stretched to fill region, no background color red visible.
hidden: image aligned to upper left, lower right filled with blue.
meet: image scaled to touch sides, top and bottom filled with green.
slice: image scaled top bottom edges touch, sides overflow region.
1.3
Tests background
color override on media elements
(smil ,
source )
Show yellow background on left, green on right for 2s.
Then, show smile on left with red background, frown on right with green
background for 2s.
Then, show smile on left with yellow background, frown on right with blue
background for 2s.
1.4
Implements
default layout
(smil ,
source )
Show frown, show smile which hides frown.
Remove. and frown reappears.
1.5
Tests
fit=scroll
(smil ,
source )
Show smile. Allow scrolling window to see entire image
1.6
Tests hierarchical
layout
(smil ,
source )
Show one topLayout. At 0s show smile in the one open window. At 2s open another
window and show frown in it.
At 4s smile ends, and window not close.
At 5s frown ends, window should close.
show smile and frown for 10s, begin at the same time, smile will obscure
frown.
show nothing for 2s.
show smile and then 1s later, frown for 10s, obscurring smile.
show nothing for 2s. show. for 10s, frown is obscurred.
1.7
Tests hierarchical
layout with topLayout element
(smil ,
source )
Tests hierarchical layout with topLayout element.
show smile and frown for 10s, begin at the same time, smile will obscure
frown, frown will be clipped on its right at the level as the right smile
edge.
show nothing for 2s.
show smile and then 1s later, frown for 10s, obscurring smile, the both smile
and frown will be clipped on their right
show nothing for 2s.
show. for 10s, frown is obscurred, smile will be clipped on its right
1.8
Tests predefined
regPoints
(smil ,
source )
Tests predefined regPoints.
Align the center of the image with the predefined rePoints, left-to-right,
top-to-bottom, right-to-left, bottom-to-top, center in sequence.
Each for 2s, All with blue background.
1.9
Tests regPoint
positioning layout with topLayout element - 1
(smil ,
source )
Tests regPoint positioning layout with topLayout element.
Show smile on left, frown on right.
Cycle the image alignment options from upper-left to lower-right, applying
these image alignments to the regpoint in the center of the image.
You should see in the following order:
- In the lower half part of the topLayout (left to right): black area, right
part of smile, black area, right part of frown
- In the lower half part of the topLayout (left to right): full smile, full
frown
- In the lower half part of the topLayout (left to right): right part of
smile, black area, right part of frown, black area
The three following steps: the same cycle but into the middle of the topLayout
The three last steps: the same cycle but into the top of the topLayout
1.10
Tests regPoint
positioning layout with topLayout element - 2
(smil ,
source )
Same display pattern as previous test, but uses media element regAlign to
override the regAlign on the regPoint element.
Show smile on left, frown on right.
Cycle the image alignment options from upper-left to lower-right, applying
these image alignments to the regpoint in the center of the image.
1.11
Tests regPoint
positioning layout with all fit values and all regAlign values - 1
(smil ,
source )
The regPoint is in center of display window.
regAlign goes top to bottom and right to left.
For this test, image is smaller than region.
Follows same order as described in spec, refer to the spec for proper behavior.
1.12
Tests regPoint
positioning layout with all fit values and all regAlign values - 2
(smil ,
source )
Also tests media element override of fit values.
The regPoint is in center of display window.
regAlign goes top to bottom and right to left.
For this test, image is larger than the region in width and height.
Follows same order as described in spec, refer to the spec for proper behavior.
1.13
Tests type,
region, and root-layout, pixels
(smil ,
source )
Tests type, region, and root-layout, pixels
Show frown on left, smile on right in 640x240 window
1.14
Tests type,
region, and root-layout, percentages
(smil ,
source )
Tests type, region, and root-layout, percentages
Show frown on left, smile on right in 640x240 window
1.15
Tests type,
region, and root-layout, pixels
(smil ,
source )
Tests type, region, and root-layout, pixels
Show frown on left, smile on right in 640x240 window
1.16
Tests deprecated
background-color on root-layout
(smil ,
source )
Show frown center with yellow background color
1.17
Tests
backgroundColor on root-layout
(smil ,
source )
Show frown center with yellow background color
1.18
Tests
showBackground = always
(smil ,
source )
blue background of centrol region is shown for 2s
smile is shown for 2s
blue background is shown again
1.19
Tests
showBackground = whenActive
(smil ,
source )
Tests showBackground = whenActive.
nothing is shown for 2s.
smile is shown for 2s with blue surround (on the right and bottom).
nothing is shown again.
1.20
Tests audio
layout
(smil ,
source )
geminiecho plays quietly
then at 2s leonidsample plays loudly
and play together for 4s.
1.21
Tests subregion
positioning layout with topLayout element - 1
(smil ,
source )
Show one topLayout.
At 0s show smile image with upper-left at upper-left corner for 2s.
At 2s show smile image with upper-left at upper-mid corner for 2s.
At 4s show smile image with upper-left at mid-left corner for 2s.
At 6s show smile image with upper-left at mid-mid corner for 2s.
1.22
Tests subregion
positioning layout with topLayout element - 2
(smil ,
source )
Show one topLayout.
At 0s show smile image with upper-left at upper-left corner for 2s.
At 2s show smile image with upper-left at upper-quarter-from-left corner
for 2s.
At 4s show smile image with upper-left at quarter-from-top-left corner for
2s.
At 6s show smile image with upper-left at quarter-from-top-quarter-from-left
corner for 2s.
1.23
Tests default
topLayout behavior, and topLayout background color.
(smil ,
source )
Show both topLayouts with blue backgrounds
At 0s show smile in one window.
At 2s show frown in another window.
At 4s smile ends, but window should not close.
At 5s frown ends, but window should not close.
1.24
Tests topLayout
close behavior
(smil ,
source )
Show both topLayouts.
At 0s show smile in one window.
At 2s show frown in another window.
At 4s smile ends, and window should close.
At 5s frown ends, window should not close.
1.25
Tests topLayout
open behavior
(smil ,
source )
Show one topLayout.
At 0s show smile in the one open window.
At 2s open another window and show frown in it.
At 4s smile ends, and window not close.
At 5s frown ends, window should close.
1.26
Tests
z-index
(smil ,
source )
Show smile in upper left. Show frown center and partially overlapping.
1.27
Tests z-index
timing rule
(smil ,
source )
Show smile in upper left. Show frown center and partially overlapping.
1.28
Tests z-index
lexical order rule
(smil ,
source )
Show smile in upper left. Show frown center and partially overlapping.