Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / animations / script-tests / animate-elem-08-t-drt.js
blob18939d80aa074de6973a53223cb65d4911ee39da
1 description("A copy of the corresponding W3C-SVG-1.1 test, which dumps the animation at certain times");
2 embedSVGTestCase("../W3C-SVG-1.1/animate-elem-08-t.svg");
4 // Setup animation test
5 function sample1() {
6 expectMatrix("rootSVGElement.getTransformToElement(path1)", "0", "1", "-1", "0", "224.9", "-25.9");
7 expectMatrix("rootSVGElement.getTransformToElement(path2)", "0", "-1", "1", "0", "-223.9", "275.9");
10 function sample2() {
11 expectMatrix("rootSVGElement.getTransformToElement(path1)", "1", "0.1", "-0.1", "1", "-70.3", "-182.8");
12 expectMatrix("rootSVGElement.getTransformToElement(path2)", "-1", "-0.1", "0.1", "-1", "318.6", "211.6");
15 function sample3() {
16 expectMatrix("rootSVGElement.getTransformToElement(path1)", "0.7", "-0.7", "0.7", "0.7", "-265.1", "-18.9");
17 expectMatrix("rootSVGElement.getTransformToElement(path2)", "-0.7", "0.7", "-0.7", "-0.7", "442.7", "-156.9");
20 function executeTest() {
21 path1 = rootSVGElement.ownerDocument.getElementsByTagName("path")[1];
22 path2 = rootSVGElement.ownerDocument.getElementsByTagName("path")[3];
24 const expectedValues = [
25 // [animationId, time, sampleCallback]
26 ["an1", 0.0, sample1],
27 ["an1", 3.0, sample2],
28 ["an1", 6.0, sample3],
29 ["an1", 60.0, sample3]
32 runAnimationTest(expectedValues);
35 window.animationStartsImmediately = true;
36 var successfullyParsed = true;