expect(frame.ENDING).toBe(3);\r
expect(frame.POSTWAITING).toBe(4);\r
expect(frame.state).toBe(frame.WAITING);\r
+ expect(frame.end).toBe(0);\r
\r
expect(frame.beginList).toEqual({\r
next: null,\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
expect(frame.updateState(0).state).toBe(frame.PLAYING);\r
expect(frame.begin).toBe(0);\r
expect(frame.updateState(1).state).toBe(frame.ENDING);\r
+ expect(frame.end).toBe(1);\r
expect(frame.updateState(1).state).toBe(frame.BEGINNING);\r
expect(frame.begin).toBe(1);\r
expect(frame.updateState(1).state).toBe(frame.PLAYING);\r
expect(frame.state).toBe(frame.PLAYING);\r
expect(frame.updateState(3).state).toBe(frame.ENDING);\r
expect(frame.state).toBe(frame.ENDING);\r
+ expect(frame.end).toBe(3);\r
expect(frame.updateState(4).state).toBe(frame.POSTWAITING);\r
expect(frame.state).toBe(frame.POSTWAITING);\r
\r
expect(frame.state).toBe(frame.PLAYING);\r
expect(frame.updateState(3).state).toBe(frame.ENDING);\r
expect(frame.state).toBe(frame.ENDING);\r
+ expect(frame.end).toBe(3);\r
expect(frame.updateState(4).state).toBe(frame.POSTWAITING);\r
expect(frame.state).toBe(frame.POSTWAITING);\r
expect(frame.updateState(4).state).toBe(frame.POSTWAITING);\r
appendEnd(1);\r
expect(frame.updateState(1).state).toBe(frame.BEGINNING);\r
expect(frame.updateState(1).state).toBe(frame.ENDING);\r
+ expect(frame.end).toBe(1);\r
expect(frame.updateState(1).state).toBe(frame.POSTWAITING);\r
} );\r
/*無効同値クラスを調べておく (Equivalence partitioning, the following is the invalid partion)*/\r
expect(p.__transformList[1].isPlaying).toBeTruthy();\r
$animate._setEndFrame(1);\r
expect(p.__transformList[0].isPlaying).toBeTruthy();\r
- expect(p.__transformList[1].isPlaying).toBeTruthy();\r
+ expect(p.__transformList[1].isPlaying).toBeFalsy();\r
\r
delete p.__transformList;\r
ele.setAttributeNS(null, "type", "scale");\r