OSDN Git Service

Modify the mode property of the
authordhrname <dhrname@users.sourceforge.jp>
Tue, 17 May 2016 13:58:33 +0000 (22:58 +0900)
committerdhrname <dhrname@users.sourceforge.jp>
Tue, 17 May 2016 13:58:33 +0000 (22:58 +0900)
org/w3c/dom/smil.js
tool/Spec/spec/SvgDomSpec.js

index 451ba8c..c69efd9 100644 (file)
@@ -1663,11 +1663,13 @@ base("$calcMode").up("$attribute").mix( {
   } )\r
   .up("$motionElement")\r
   .mix( {\r
-    numberOfList: -1\r
+    numberOfList: -1,\r
+    mode: "paced"\r
   } )\r
   .on("init", function (ele) {\r
     /*type属性で変更されないように($animateTransformElementのinitメソッドを参照のこと)*/\r
     this.type = "translate";\r
+    this.mode = this.getAttr("mode", "paced");\r
   } );\r
 \r
 /*$svgEventオブジェクトは、SVGEvent発火を監視するためのオブジェクト*/\r
index 522b9d8..776229e 100644 (file)
@@ -3019,9 +3019,11 @@ describe("SMIL Animation Spec", function() {
         /*境界条件を調べておく (limit value analysis)*/\r
         it("should be this for the value  (limit value analysis)", function() {\r
           expect($animate.type).toBe("translate");\r
+          expect($animate.mode).toBe("paced");\r
           ele.setAttributeNS(null, "type", "scale");\r
           $animate.init(ele);\r
           expect($animate.type).toBe("translate");\r
+          expect($animate.mode).toBe("paced");\r
           \r
           ele.setAttributeNS(null, "values", "0;1");\r
           $animate.up("$a").init(ele);\r
@@ -3040,6 +3042,10 @@ describe("SMIL Animation Spec", function() {
           expect($animate.$a.tocall(1)).toBe("translate(1.0)");\r
           \r
         } );\r
+        /*無効同値クラスを調べておく (Equivalence partitioning, the following is the invalid partion)*/\r
+        it("should be this for the value (the invalid partion )", function() {\r
+          $animate.init();\r
+        } );\r
       } );\r
     } );\r
     describe("Event", function() {\r