<!DOCTYPE html>
<html>
<head>
<script>
    if (window.testRunner)
        testRunner.dumpAsText();

    function crash() {
        var animate = document.getElementById('animate');
        var svg = document.getElementById('svg');
        try { animate.endElementAt(NaN); } catch (e) {}
        try { animate.beginElementAt(NaN); } catch (e) {}
        svg.setCurrentTime(2);
    }
</script>
</head>
<body onload="crash()">
Test for WK100322: ElementTimeControl should check for invalid values. This test passes if it does not crash.

<svg id="svg" width="200" height="200">
    <rect x="0" y="0" width="100" height="100" fill="green">
        <animate id="animate" attributeName="x" to="200" begin="3s"/>
    </rect>
</svg>
</body>
</html>
