/*終了処理をした後の待機状態を示す定数*/\r
POSTWAITING: 4,\r
\r
+ /*初期化用メソッド*/\r
+ init: function() {\r
+ this.state = this.WAITING;\r
+ this.begin = 0;\r
+ return this;\r
+ },\r
+ \r
/*引数で指定されたフレーム数に応じて、stateプロパティを更新するメソッド*/\r
updateState: function( /*number*/ f) {\r
if (f === void 0) {\r
max: this.getAttr("max", "indefinite")\r
} )\r
} ).updateList().parse();\r
- $frame.addLine(frame.$list);\r
+ $frame.addLine(frame.$list.init());\r
/*beginElementメソッドを追加*/\r
function eleMethod (obj, eventName) {\r
return (obj.string !== "indefinite") ? function(){}\r
\r
expect(frame.getMaxList(0, frame.beginList)).toBe(-1);\r
expect(frame.getMaxList(0, frame.endList)).toBe(-1);\r
+ \r
+ frame.begin = 12;\r
+ frame.init();\r
+ expect(frame.state).toBe(frame.WAITING);\r
+ expect(frame.begin).toBe(0);\r
+ expect(frame.init()).toBe(frame);\r
+\r
} );\r
/*同値分割をして、有効同値クラスを調べておく (Equivalence partitioning, the following is the valid partion)*/\r
it("should be this for the value (the valid partion)", function() {\r