Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / animations / script-tests / single-values-animation.js
blob7a23ff55dc2f3215668db9599a8e5bcd3902fe60
1 description("This tests values animation with just a single entry");
2 embedSVGTestCase("resources/single-values-animation.svg");
4 // Setup animation test
5 function sample1() {
6 shouldBeCloseEnough("rect.width.animVal.value", "10");
7 shouldBe("rect.width.baseVal.value", "10");
10 function sample2() {
11 shouldBeCloseEnough("rect.width.animVal.value", "100");
12 shouldBe("rect.width.baseVal.value", "10");
15 function executeTest() {
16 rect = rootSVGElement.ownerDocument.getElementsByTagName("rect")[0];
18 const expectedValues = [
19 // [animationId, time, sampleCallback]
20 ["an1", 0.0, sample1],
21 ["an1", 2.0, sample2],
22 ["an1", 4.0, sample2],
23 ["an1", 60.0, sample2]
26 runAnimationTest(expectedValues);
29 window.animationStartsImmediately = true;
30 var successfullyParsed = true;