OSDN Git Service

Add the Spec for a object
authordhrname <dhrname@users.sourceforge.jp>
Sun, 8 Feb 2015 13:33:36 +0000 (22:33 +0900)
committerdhrname <dhrname@users.sourceforge.jp>
Sun, 8 Feb 2015 13:33:36 +0000 (22:33 +0900)
org/w3c/dom/smil.js
tool/Spec/spec/SvgDomSpec.js

index 7fa3f6f..c89b63e 100644 (file)
@@ -307,7 +307,13 @@ base("$frame").mix ( {
     \r
     /*活動をストップさせるためのオブジェクト*/\r
     end: $frame.$begin.up("$end"),\r
-     \r
+\r
+    /*リピート回数*/\r
+    repeatCount: null,\r
+    \r
+    /*繰り返し時間*/\r
+    repeatDur: null,\r
+\r
     /*解決した(計算する)ときの時間*/\r
     resolvedTime: function() {\r
       return Date.now();\r
@@ -317,10 +323,11 @@ base("$frame").mix ( {
      * base.jsのofメソッドを活用して、関数型っぽい処理をする\r
      * 以下では、活動持続時間を算出*/\r
     call: function() {\r
-      var isIndefiniteDur = (this.dur === "indefinite"),\r
-          isIndefiniteEnd = (this.end === this.$begin.$end),\r
+      var isIndefDur = (this.dur === "indefinite"),\r
+          isIndefRepeatCount = (this.repeatCount === "indefinite"),\r
+          isIndefRepeatDur = (this.repeatDur === "indefinite"),\r
           actTime = null;\r
-      if (!isIndefiniteDur) {\r
+      if (!isIndefDur) {\r
         actTime = Math.floor( this.offset(this.dur) * this.fpms);\r
       }\r
       return actTime;\r
index 54f4cf4..59b26a1 100644 (file)
@@ -2407,6 +2407,24 @@ describe("SMIL Animation Spec", function() {
       } );\r
     } );\r
   } );\r
+  describe("A $end object", function() {\r
+    var end = base("$frame").$begin.$end;\r
+     beforeEach( function() {\r
+      end.string = "";\r
+    } );\r
+    /*境界条件を調べておく (limit value analysis)*/\r
+    it("should be this for the value  (limit value analysis)", function() {\r
+      \r
+    } );\r
+    /*同値分割をして、有効同値クラスを調べておく (Equivalence partitioning, the following is the valid partion)*/\r
+    it("should be this for the value (the valid partion)", function() {\r
+\r
+    } );\r
+    /*無効同値クラスを調べておく (Equivalence partitioning, the following is the invalid partion)*/\r
+    it("should be this for the value (the invalid partion)", function() {\r
+\r
+    } );\r
+  } );\r
   describe("A $activate object", function() {\r
     var act = base("$frame").$begin.$activate;\r
      beforeEach( function() {\r
@@ -2419,6 +2437,8 @@ describe("SMIL Animation Spec", function() {
       expect(act.dur).toBe("indefinite");\r
       expect(typeof act.resolvedTime).toBe("function");\r
       expect(act.end).toBe(act.$begin.$end);\r
+      expect(act.repeatCount).toBeNull();\r
+      expect(act.repeatDur).toBeNull();\r
 \r
       act.up("$a");\r
       expect(act.$a.call()).toBeNull();\r