Testing SVG fragments with svgView and animation

Hello folks,

As part of ACTION-2817
Add the promised note relating to ISSUE-2340

I'm doing some testing, which incidentally means I will end up doing Erik's ACTION-2784
Create Test Case for Animating SVGFragmentIdentifier

I started with a copy of linking-a-03-b.svg, which uses svgView. I then removed the fragment from the link (so if the animation does not run, the test fails) and used an animate with two values; the first one links to some other place (so the test fails if you follow that link) and the second one gives the same test result as linking-a-03-b.svg does (so I can use the same patchfile for the reference image).

I also animated the colour of the arrow so that there is a visual indication when the xlink:href animation has got to the right value.

Opera (10.60) links to the first value in the animation, ignoring the second one.

Bitflash (6.4a) does not seem to support svgView (fails linking-a-03-b.svg) so I can't easily test if it animates the href correctly.

batik (svn) gives  some Java error which I don't really understand, but I suspect it is trying to update the link and failing.

java.lang.NullPointerException
        at org.apache.batik.dom.svg.SVGStylableElement.removeTargetListener(Unkn
own Source)
        at org.apache.batik.anim.AnimationEngine.dispose(Unknown Source)
        at org.apache.batik.bridge.SVGAnimationEngine.dispose(Unknown Source)
        at org.apache.batik.bridge.BridgeContext.dispose(Unknown Source)
        at org.apache.batik.bridge.UpdateManager$3.run(Unknown Source)
        at org.apache.batik.util.RunnableQueue.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:619)

In the test (attached) I haven't got to escaped semicolons yet (which is the test purpose), just trying to get something simpler working.

Erik, does Opera 10.60 support animating href using values syntax? It passes linking-a-03-b.svg so it seems to support svgView in static links.

(Oh and the attached test is called linking-frag-02 because I plan to add a static, not animated fragment test linking-frag-02 that exercises the other svgView attributes besides viewBox, which is the only one tested by linking-a-03-b.svg. 

-- 
 Chris Lilley                    mailto:chris@w3.org
 Technical Director, Interaction Domain
 W3C Graphics Activity Lead
 Co-Chair, W3C Hypertext CG

Received on Thursday, 8 July 2010 17:06:44 UTC