\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
* 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
} );\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
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