" xmlns:xlink="http://www.w3.org/1999/xlink">
  <ellipse id="ellipse" cx="-100" rx="100" display="none"/>
  <rect width="50" height="50" x="0" y="0" fill="green">
    <animateMotion id="anim" begin="0s" dur="4s" fill="freeze">
      <mpath href="#ellipse"/>
    </animateMotion>
  </rect>
</svg>

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

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