Jump to content

TestCoverage/13-Interactivity

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 13: Interactivity

[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

13.2 Complete list of supported events

- there is much overlap here with other parts of the spec. This section will be tested with registering event listeners via AddEventListener ( to be easily re-used by DOM Level 3 Events ) and verified with uDOM scripting
 # DOMFocusIn
 # DOMFocusOut
 # DOMActivate
 # click
 # mousedown
 # mouseup
 # mouseover
 # mousemove
 # mouseout
 # mousewheel
 # textInput
 # keydown
 # keyup
 # load
 # SVGLoad
 # resize
 # SVGResize
 # scroll
 # SVGScroll
 # SVGZoom
 # SVGRotate
 # beginEvent
 # endEvent
 # repeatEvent
 # SVGPreload
 # SVGLoadProgress
 # SVGPostLoad
 # SVGTimer
 # SVGConnectionConnected
 # SVGConnectionClosed
 # SVGConnectionError
 # SVGConnectionDataSent
 # SVGConnectionDataReceived

13.3 User interface events

- tested below

13.4 Pointer Events

- interesting to note that our tests do not usually have an alternative to the pointer - and are not usable on mobile devices which have no pointer

13.5 Text events

- no testable assertions

13.6 Key events

- no testable assertions

13.7 Event Dispatching

✓ pointer events with graphical objects

# pointer events with SVGElementInstance ( use )

# explicit test that display="none" is not the target of pointer events

✓ test simple event bubbling

# test event bubbling through various ancestor chains

13.8 Processing order for user interface events

✓ test the processing order of events

13.9 The 'pointer-events' property

✓ test various combinations of pointer-events on graphical elements

✓ test various combinations of pointer-events on text elements

# test various combinations of pointer-events on image elements

# test new boundingBox value

13.10 Magnification and panning

✓ test zoomAndPan values

- zoomAndPan tests should be updated to indicate rotation is not allowed as well

13.11.1 The focusable attribute

✓ test focusable="auto" for graphical elements, a elements, editable text elements

✓ test focusable="auto" for elements which are targets of animation that begins with focus events

✓ test focusable="auto" for elements which are the target/observer of a listener element that is registered on focus events

✓ test focusable animation

✓ focusable="true" on container, graphical and text elements

13.12.1 Navigation behavior

✓ The SVG User Agent must not navigate to an element which has display='none'. (An element which has display='none' is not focusable.)

✓ The SVG User Agent must allow navigation to elements which are not visible (i.e. which has a 100% transparency or which is hidden by another element).

# The SVG User Agent must allow navigation to elements which are located outside of the current viewport.

✓ Focusable elements within the content referenced by a 'use' element participate in field navigation operations using the flattened focus model.

✓ If an 'animation' element references an SVG document, then all of the focusable fields defined within the referenced SVG document participate in field navigation operations using the flattened focus model

# When the document is loaded the focus is first offered to the SVG User Agent

✓ Once the SVG User Agent releases focus, then focus passes to the entity that first matches the following criteria: (1) the rootmost svg element if it is focusable, (2)the element referenced by the 'nav-next' attribute on the rootmost svg element, (3)if the attribute is present, the first focusable element in the document starting from the rootmost svg element, (4) the SVG User Agent

# For stand-alone SVG documents, the SVG User Agent must always have a currently focused object. If focus is not held by any object in the document tree, the SVG User Agent must give focus to the SVGDocument object.

13.12.2 Specifying navigation

✓ tests for nav-* attributes . Should include all three values, url, auto and self

13.12.2 Specifying Focus Highlighting

- This section is a SHOULD and is hard to test