From bd965c05d4cd7938dbeff29f3feb52572831eee8 Mon Sep 17 00:00:00 2001 From: dhrname Date: Tue, 17 May 2016 22:58:33 +0900 Subject: [PATCH] Modify the mode property of the --- org/w3c/dom/smil.js | 4 +++- tool/Spec/spec/SvgDomSpec.js | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/org/w3c/dom/smil.js b/org/w3c/dom/smil.js index 451ba8c..c69efd9 100644 --- a/org/w3c/dom/smil.js +++ b/org/w3c/dom/smil.js @@ -1663,11 +1663,13 @@ base("$calcMode").up("$attribute").mix( { } ) .up("$motionElement") .mix( { - numberOfList: -1 + numberOfList: -1, + mode: "paced" } ) .on("init", function (ele) { /*type属性で変更されないように($animateTransformElementのinitメソッドを参照のこと)*/ this.type = "translate"; + this.mode = this.getAttr("mode", "paced"); } ); /*$svgEventオブジェクトは、SVGEvent発火を監視するためのオブジェクト*/ diff --git a/tool/Spec/spec/SvgDomSpec.js b/tool/Spec/spec/SvgDomSpec.js index 522b9d8..776229e 100644 --- a/tool/Spec/spec/SvgDomSpec.js +++ b/tool/Spec/spec/SvgDomSpec.js @@ -3019,9 +3019,11 @@ describe("SMIL Animation Spec", function() { /*境界条件を調べておく (limit value analysis)*/ it("should be this for the value (limit value analysis)", function() { expect($animate.type).toBe("translate"); + expect($animate.mode).toBe("paced"); ele.setAttributeNS(null, "type", "scale"); $animate.init(ele); expect($animate.type).toBe("translate"); + expect($animate.mode).toBe("paced"); ele.setAttributeNS(null, "values", "0;1"); $animate.up("$a").init(ele); @@ -3040,6 +3042,10 @@ describe("SMIL Animation Spec", function() { expect($animate.$a.tocall(1)).toBe("translate(1.0)"); } ); + /*無効同値クラスを調べておく (Equivalence partitioning, the following is the invalid partion)*/ + it("should be this for the value (the invalid partion )", function() { + $animate.init(); + } ); } ); } ); describe("Event", function() { -- 2.11.0