Jump to content

TestCoverage/12-Multimedia

From SVG

This page is an archive of the previous Group's wiki from http://www.w3.org/Graphics/SVG/Group/wiki.


Test Coverage for SVG Tiny 1.2 Chapter 12: Multimedia

[1]

Legend:

 - is a comment or note
 ✓ is an assertion or feature that is fully covered in the test suite
 # is an assertion or feature that is partially or not covered in the test suite

12.1 Media Elements

# test that the default event-base element for all SVG Media elements is the element itself.

12.1.1 Media timeline and document timeline

# test timelineBegin="OnLoad" with video. Start with a large SVG file ( perhaps using many base64-encoded  images ) which has a video element at the end. Video frame displayed should be at video playback time 0. * test timelineBegin="OnStart" with video. Start with a large SVG file ( perhaps using many base64-encoded  images ) which has a video element at the end. Video frame displayed should be at video playback time > 0.


# test timelineBegin="OnLoad" with video that has syncBehavior="independent". Start with a large SVG file  ( perhaps using many base64-encoded images ) which has a video element at the end.  Video frame displayed should be at video playback time 0.


# test timelineBegin="OnStart" with video that has syncBehavior="independent". Start with a large SVG file  ( perhaps using many base64-encoded images ) which has a video element at the end.  Video frame displayed should be at video playback time 0.



12.1.2 Media availability

- determining when media is 'available' depends on media type and is not normative - may be hard to test

12.1.3 Platform limits

- has been identified as an issue - which media types to support in the testsuite.

12.2 The 'audio' element

✓ test that audio behaves reasonably when xlink:href is not an audio stream (image, video, "", etc).


✓ test that xlink:href animation on audio changes media and, if media playback time can be controlled,  the timeline is reset to zero.


✓ tests for SMIL attribute begin.


✓ tests for SMIL attribute dur.


✓ tests for SMIL attribute end.


# tests for SMIL attribute min.


# tests for SMIL attribute max.


# tests for SMIL attribute restart.


✓ tests for SMIL attribute repeatCount.


✓ tests for SMIL attribute repeatDur.


# tests for SMIL attribute fill.

12.3 The 'video' element

✓ test that video behaves reasonably when xlink:href is not a video stream (image, audio, "", etc).


✓ test that xlink:href animation on video changes media and, if media playback time can be controlled,  the timeline is reset to zero.


✓ tests for SMIL attribute begin.


✓ tests for SMIL attribute dur.


✓ tests for SMIL attribute end.


# tests for SMIL attribute min.


# tests for SMIL attribute max.


# tests for SMIL attribute restart.


✓ tests for SMIL attribute repeatCount.


# tests for SMIL attribute repeatDur.


✓ tests for SMIL attribute fill.


✓ tests for transformBehavior = pinned.
✓ tests for transformBehavior = pinned90.
✓ tests for transformBehavior = pinned180.
✓ tests for transformBehavior = pinned270.
✓ tests for transformBehavior = geometric including preserveAspectRatio, height, width attributes.


# tests for transformBehavior = geometric including viewport-fill, viewport-fill-opacity attributes.


# test for focusability.


# test for initialVisibility.


# test for overlay.


# test for http://www.w3.org/Graphics/SVG/feature/1.2/#Video in switch.


✓ test for http://www.w3.org/Graphics/SVG/feature/1.2/#TransformedVideo in switch.


# test for http://www.w3.org/Graphics/SVG/feature/1.2/#ComposedVideo.

12.4 The 'animation' element

✓ test that animation element behaves reasonably when xlink:href is not a SVG file (image, video, "", etc).


✓ test that xlink:href animation on animation element changes resource and the timeline is reset to zero.


✓ tests for SMIL attribute begin.
✓ tests for SMIL attribute dur.
✓ tests for SMIL attribute end.
✓ tests for SMIL attribute min.
✓ tests for SMIL attribute max.
✓ tests for SMIL attribute restart.
✓ tests for SMIL attribute repeatCount.
✓ tests for SMIL attribute repeatDur.
✓ tests for SMIL attribute fill.


✓ tests for viewport-fill, viewport-fill-opacity and preserveAspectRatio.


# test that there is no inheritance of properties into the referenced animation.


✓ test for focusability.


 ✓ test for initialVisibility

12.5 The audio-level property

# test audio-level property on audio, video, animation and g elements
✓ test that a value > 1.0 increases audio level
✓ test that a value < 1.0 decreases audio level
✓ test that if the element has an element volume of 0, then the output signal must be inaudible
✓ test that if the element has an element volume of 1, then the output signal must be at the system volume level - this may be difficult to test
✓ test animation of audio-level property

12.6 Attributes for runtime synchronization

- test on audio, video, animation elements


- would be nice to have streaming video server (Darwin?) which could produce delays in streaming the content.


- can pause timelines by using uDOM methods pauseElement and resumeElement


# test syncBehavior="locked". SVG file will have a media element which has syncBehavior="locked". Delay media element on specific user interaction - media should skip to syncronize with document time.


# test syncBehavior="locked" and with a syncTolerance > 0. SVG file will have a media element which  has syncBehavior="locked" and syncTolerance > 0. Delay media element on specific user interaction -  media should pause until given syncTolerance has elapsed and then jump to document time. The media element should then pause until syncTolerance has elapsed and repeat as needed.


# test syncBehavior="canSlip". SVG file will have a media element which has syncBehavior="canSlip". Delay media element on specific user interaction - media should pause while document time continues.


# test syncMaster="true" on media element. SVG file will have a media element which has  syncMaster="true". Document time should be paused until the media timeline is advanced. Pausing the media element will pause the document timeline.


# test syncBehavior="locked" and syncMaster="true" and syncTolerance > 0. SVG file will have a media  element which has syncMaster="true". Document will conatin a second media element which has syncBehavior="locked" and syncTolerance > 0. All timelines should be paused until the media timeline is advanced. Pausing the media element will pause the document timeline immediately and the seconded media timeline once syncTolerance has elapsed.


#' test syncBehavior="canSlip" and syncMaster="true". SVG file will have a media  element which has syncMaster="true". Document will conatin a second media element which has syncBehavior="canSlip". The document timeline should be paused until the media timeline is advanced. The seconded media timeline should not be paused.


# test syncToleranceDefault and syncBehaviorDefault.


- many more combinations of each media element, which timeline is paused, is syncMaster, etc.

12.7 The 'initialVisibility' attribute

- covered in video and animation sections