">
  <rect width="50" height="50" x="0" y="0" fill="green">
    <animateMotion id="anim" path="M 100 100 L 100 100"
        begin="0s" dur="2s" repeatCount="2" accumulate="sum" fill="remove" />
  </rect>
</svg>

<script>
var rootSVGElement = document.querySelector("svg");
var epsilon = 1.0;

// Setup animation test
function sample1() {
    assert_approx_equals(rootSVGElement.getBBox().x, 100, epsilon);
}

function sample2() {
    assert_approx_equals(rootSVGElement.getBBox().x, 200, epsilon);
}

function sa