Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / animations / script-tests / animate-fill-freeze-with-repeatDur.js
blobb2abad427021020fe3124b8700ed4cc8fa63189d
1 description("Test for animation freeze when repeatDur is not a multiple of dur");
2 embedSVGTestCase("resources/animate-fill-freeze-with-repeatDur.svg");
4 // Setup animation test
5 function sample1() {
6 shouldBeCloseEnough("rect1.x.animVal.value", "0");
7 shouldBe("rect1.x.baseVal.value", "0");
10 function sample2() {
11 shouldBeCloseEnough("rect1.x.animVal.value", "150");
12 shouldBe("rect1.x.baseVal.value", "0");
15 function executeTest() {
16 var rects = rootSVGElement.ownerDocument.getElementsByTagName("rect");
17 rect1 = rects[0];
19 const expectedValues = [
20 // [animationId, time, sampleCallback]
21 ["anim", 0.0, sample1],
22 ["anim", 6.0, sample2]
25 runAnimationTest(expectedValues);
28 window.animationStartsImmediately = true;
29 var successfullyParsed = true;