From 0e6ac78d33c6682504f3c06186aaf91f93c5a63b Mon Sep 17 00:00:00 2001 From: dhrname Date: Sun, 26 Apr 2015 19:39:29 +0900 Subject: [PATCH] Change a comment on the object --- org/w3c/dom/smil.js | 2 +- tool/Spec/spec/SvgDomSpec.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/org/w3c/dom/smil.js b/org/w3c/dom/smil.js index 36fba1a..2ed2cd4 100644 --- a/org/w3c/dom/smil.js +++ b/org/w3c/dom/smil.js @@ -667,7 +667,7 @@ Math.qubicnewton = function(a0, a1, a2, a3, b) { fb = eps = void 0; return b; } else { - /*分母は与えられた三次方程式を微分したもの*/ + /*以下は収束の漸化式。分母は与えられた三次方程式を微分したもの*/ b = b - fb / (3* a0 *b*b + 2 * a1 *b + a2); fb = a0 *b*b*b + a1 *b*b + a2*b + a3; } diff --git a/tool/Spec/spec/SvgDomSpec.js b/tool/Spec/spec/SvgDomSpec.js index 611c274..944b41c 100644 --- a/tool/Spec/spec/SvgDomSpec.js +++ b/tool/Spec/spec/SvgDomSpec.js @@ -3491,6 +3491,10 @@ describe("SMIL Animation Spec", function() { setv = attr.setValues(["1", "1", "1", "1", "1", "15.1"])[4].call(); expect(setv(0.5)).toBe("8.05"); expect(setv(1)).toBe("15.10"); + + attr.keyTime = 0.1; + expect(setv(0.5)).toBe("80.50"); + expect(setv(1)).toBe("151.00"); } ); /*無効同値クラスを調べておく (Equivalence partitioning, the following is the invalid partion)*/ it("should be this for the value (the invalid partion on a spline mode )", function() { -- 2.11.0