ar rootSVGElement = document.querySelector("svg");
var epsilon = 1.0;

// Setup animation test
function sample1() {
    assert_approx_equals(rect1.width.animVal.value, 150, epsilon);
    assert_equals(rect1.width.baseVal.value, 150);

    assert_approx_equals(rect2.width.animVal.value, 150, epsilon);
    assert_equals(rect2.width.baseVal.value, 150);
}

function sample2() {
    assert_approx_equals(rect1.width.animVal.value, 100, epsilon);
    assert_equals(rect1.width.baseVal.value, 150);

    assert_appro