OSDN Git Service

Support for a calcMode proeprty
authordhrname <dhrname@users.sourceforge.jp>
Wed, 8 Apr 2015 12:20:15 +0000 (21:20 +0900)
committerdhrname <dhrname@users.sourceforge.jp>
Wed, 8 Apr 2015 12:20:15 +0000 (21:20 +0900)
org/w3c/dom/smil.js
tool/Spec/spec/SvgDomSpec.js

index ea03546..3dadb81 100644 (file)
@@ -719,6 +719,7 @@ base("$calcMode").up("$attribute").mix( {
                     max: (getAttr("max") || "indefinite")\r
                   } )\r
                 } ).parse();\r
+    frame.calcMode = this.up("$calcMode");\r
     if (frame.isResolved) {\r
       frame.listener( {\r
         timeStamp: Date.now()\r
index 81242a2..6c228d6 100644 (file)
@@ -3362,6 +3362,10 @@ describe("SMIL Animation Spec", function() {
           expect(attr.element).toBe(p);\r
           expect(attr.frame.timelines.length).toEqual(num);\r
         };\r
+        \r
+                \r
+        var line = attr.frame.timelines[0];\r
+        expect(line.calcMode).not.toBeUndefined();\r
       } );\r
       /*同値分割をして、有効同値クラスを調べておく (Equivalence partitioning, the following is the valid partion)*/\r
       it("should be this for the value (the valid partion on a spline mode )", function() {\r
@@ -3387,6 +3391,8 @@ describe("SMIL Animation Spec", function() {
         check2("min", "0");\r
         values[6] = "0";\r
         check2("max", "0");\r
+        values[0] = "12";\r
+        check2("begin", "12");\r
         function check2(attrName, value) {\r
           s.setAttribute(attrName, value);\r
           expect(s.hasAttributeNS(null, attrName)).toBeTruthy();\r
@@ -3401,7 +3407,7 @@ describe("SMIL Animation Spec", function() {
           expect(act.repeatDur).toBe(values[4]);\r
           expect(act.min).toBe(values[5]);\r
           expect(act.max).toBe(values[6]);\r
-        }\r
+        };\r
       } );\r
       /*無効同値クラスを調べておく (Equivalence partitioning, the following is the invalid partion)*/\r
       it("should be this for the value (the invalid partion on a spline mode )", function() {\r