Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / animations / script-tests / animateMotion-fill-freeze.js
blob98c4084719a15998a655d568b2fbc5dd055b789b
1 description("Test for animation freeze when repeatDur is not a multiple of dur");
2 embedSVGTestCase("resources/animateMotion-fill-freeze.svg");
4 // Setup animation test
5 function sample1() {
6 shouldBeCloseEnough("rootSVGElement.getBBox().x", "0");
9 function sample2() {
10 shouldBeCloseEnough("rootSVGElement.getBBox().x", "50");
13 function sample3() {
14 shouldBeCloseEnough("rootSVGElement.getBBox().x", "100");
17 function sample4() {
18 shouldBeCloseEnough("rootSVGElement.getBBox().x", "100");
21 function executeTest() {
22 var rects = rootSVGElement.ownerDocument.getElementsByTagName("rect");
23 rect1 = rects[0];
25 const expectedValues = [
26 // [animationId, time, sampleCallback]
27 ["anim", 0.0, sample1],
28 ["anim", 2.0, sample2],
29 ["anim", 4.0, sample3],
30 ["anim", 6.0, sample4]
33 runAnimationTest(expectedValues);
36 window.animationStartsImmediately = true;
37 var successfullyParsed = true;