From: dhrname Date: Wed, 8 Apr 2015 12:20:15 +0000 (+0900) Subject: Support for a calcMode proeprty X-Git-Tag: version22~231 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=05e051dc293aaf67f8a0be2c59646ae4de038458;p=sie%2Fsie.git Support for a calcMode proeprty --- diff --git a/org/w3c/dom/smil.js b/org/w3c/dom/smil.js index ea03546..3dadb81 100644 --- a/org/w3c/dom/smil.js +++ b/org/w3c/dom/smil.js @@ -719,6 +719,7 @@ base("$calcMode").up("$attribute").mix( { max: (getAttr("max") || "indefinite") } ) } ).parse(); + frame.calcMode = this.up("$calcMode"); if (frame.isResolved) { frame.listener( { timeStamp: Date.now() diff --git a/tool/Spec/spec/SvgDomSpec.js b/tool/Spec/spec/SvgDomSpec.js index 81242a2..6c228d6 100644 --- a/tool/Spec/spec/SvgDomSpec.js +++ b/tool/Spec/spec/SvgDomSpec.js @@ -3362,6 +3362,10 @@ describe("SMIL Animation Spec", function() { expect(attr.element).toBe(p); expect(attr.frame.timelines.length).toEqual(num); }; + + + var line = attr.frame.timelines[0]; + expect(line.calcMode).not.toBeUndefined(); } ); /*同値分割をして、有効同値クラスを調べておく (Equivalence partitioning, the following is the valid partion)*/ it("should be this for the value (the valid partion on a spline mode )", function() { @@ -3387,6 +3391,8 @@ describe("SMIL Animation Spec", function() { check2("min", "0"); values[6] = "0"; check2("max", "0"); + values[0] = "12"; + check2("begin", "12"); function check2(attrName, value) { s.setAttribute(attrName, value); expect(s.hasAttributeNS(null, attrName)).toBeTruthy(); @@ -3401,7 +3407,7 @@ describe("SMIL Animation Spec", function() { expect(act.repeatDur).toBe(values[4]); expect(act.min).toBe(values[5]); expect(act.max).toBe(values[6]); - } + }; } ); /*無効同値クラスを調べておく (Equivalence partitioning, the following is the invalid partion)*/ it("should be this for the value (the invalid partion on a spline mode )", function() {