blob: 8fbb5282494602ee7b3f683edc1b906c8fbddd5c [file] [log] [blame]
description("A copy of the corresponding W3C-SVG-1.1 test, which dumps the animation at certain times");
embedSVGTestCase("../W3C-SVG-1.1/animate-elem-04-t.svg");
// Setup animation test
function sample1() {
expectTranslationMatrix("rootSVGElement.getTransformToElement(path)", "-15", "-43");
}
function sample2() {
expectTranslationMatrix("rootSVGElement.getTransformToElement(path)", "-40", "-36.5");
}
function sample3() {
expectTranslationMatrix("rootSVGElement.getTransformToElement(path)", "-65", "-30");
}
function executeTest() {
path = rootSVGElement.ownerDocument.getElementsByTagName("path")[1];
const expectedValues = [
// [animationId, time, sampleCallback]
["an1", 0.0, sample1],
["an1", 1.5, sample2],
["an1", 3.0, sample3],
["an1", 60.0, sample3]
];
runAnimationTest(expectedValues);
}
window.animationStartsImmediately = true;
var successfullyParsed = true;