});\r
\r
expect(typeof frame.updateState).toBe("function");\r
- expect(frame.updateState(0)).toBe(frame.BEGINNING);\r
+ expect(frame.updateState(0).state).toBe(frame.BEGINNING);\r
expect(frame.state).toBe(frame.BEGINNING);\r
- expect(frame.updateState(0)).toBe(frame.PLAYING);\r
+ expect(frame.updateState(0).state).toBe(frame.PLAYING);\r
expect(frame.state).toBe(frame.PLAYING);\r
- expect(frame.updateState(0)).toBe(frame.PLAYING);\r
+ expect(frame.updateState(0).state).toBe(frame.PLAYING);\r
expect(frame.state).toBe(frame.PLAYING);\r
- expect(frame.updateState(0)).toBe(frame.PLAYING);\r
+ expect(frame.updateState(0).state).toBe(frame.PLAYING);\r
expect(frame.state).toBe(frame.PLAYING);\r
- expect(frame.updateState(0)).toBe(frame.PLAYING);\r
+ expect(frame.updateState(0).state).toBe(frame.PLAYING);\r
expect(frame.state).toBe(frame.PLAYING);\r
\r
- expect(frame.updateState(0)).toBe(frame.PLAYING);\r
+ expect(frame.updateState(0).state).toBe(frame.PLAYING);\r
expect(frame.state).toBe(frame.PLAYING);\r
frame.state = 100;\r
- expect(frame.updateState(0)).toBe(frame.BEGINNING);\r
+ expect(frame.updateState(0).state).toBe(frame.BEGINNING);\r
expect(frame.state).toBe(frame.BEGINNING);\r
- expect(frame.updateState()).toBe(frame.BEGINNING);\r
+ expect(frame.updateState().state).toBe(frame.BEGINNING);\r
expect(frame.state).toBe(frame.BEGINNING);\r
\r
expect(frame.beginList).toEqual({\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)).toBe(frame.BEGINNING);\r
+ expect(frame.updateState(0).state).toBe(frame.BEGINNING);\r
expect(frame.state).toBe(frame.BEGINNING);\r
- expect(frame.updateState(1)).toBe(frame.PLAYING);\r
+ expect(frame.updateState(1).state).toBe(frame.PLAYING);\r
expect(frame.state).toBe(frame.PLAYING);\r
- expect(frame.updateState(2)).toBe(frame.PLAYING);\r
+ expect(frame.updateState(2).state).toBe(frame.PLAYING);\r
expect(frame.state).toBe(frame.PLAYING);\r
- expect(frame.updateState(3)).toBe(frame.PLAYING);\r
+ expect(frame.updateState(3).state).toBe(frame.PLAYING);\r
expect(frame.state).toBe(frame.PLAYING);\r
- expect(frame.updateState(4)).toBe(frame.PLAYING);\r
+ expect(frame.updateState(4).state).toBe(frame.PLAYING);\r
expect(frame.state).toBe(frame.PLAYING);\r
\r
function appendBegin(num) {\r
};\r
};\r
appendBegin(0);\r
- expect(frame.updateState(0)).toBe(frame.BEGINNING);\r
+ expect(frame.updateState(0).state).toBe(frame.BEGINNING);\r
expect(frame.state).toBe(frame.BEGINNING);\r
- expect(frame.updateState(0)).toBe(frame.PLAYING);\r
+ expect(frame.updateState(0).state).toBe(frame.PLAYING);\r
expect(frame.state).toBe(frame.PLAYING);\r
- expect(frame.updateState(0)).toBe(frame.PLAYING);\r
+ expect(frame.updateState(0).state).toBe(frame.PLAYING);\r
expect(frame.state).toBe(frame.PLAYING);\r
\r
appendBegin(1);\r
- expect(frame.updateState(0)).toBe(frame.WAITING);\r
+ expect(frame.updateState(0).state).toBe(frame.WAITING);\r
expect(frame.state).toBe(frame.WAITING);\r
- expect(frame.updateState(0)).toBe(frame.WAITING);\r
+ expect(frame.updateState(0).state).toBe(frame.WAITING);\r
expect(frame.state).toBe(frame.WAITING);\r
- expect(frame.updateState(1)).toBe(frame.BEGINNING);\r
+ expect(frame.updateState(1).state).toBe(frame.BEGINNING);\r
expect(frame.state).toBe(frame.BEGINNING);\r
- expect(frame.updateState(1)).toBe(frame.PLAYING);\r
+ expect(frame.updateState(1).state).toBe(frame.PLAYING);\r
expect(frame.state).toBe(frame.PLAYING);\r
- expect(frame.updateState(1)).toBe(frame.PLAYING);\r
+ expect(frame.updateState(1).state).toBe(frame.PLAYING);\r
expect(frame.state).toBe(frame.PLAYING);\r
\r
function appendEnd(num) {\r
};\r
};\r
appendEnd(3);\r
- expect(frame.updateState(1)).toBe(frame.BEGINNING);\r
+ expect(frame.updateState(1).state).toBe(frame.BEGINNING);\r
expect(frame.state).toBe(frame.BEGINNING);\r
- expect(frame.updateState(2)).toBe(frame.PLAYING);\r
+ expect(frame.updateState(2).state).toBe(frame.PLAYING);\r
expect(frame.state).toBe(frame.PLAYING);\r
- expect(frame.updateState(3)).toBe(frame.ENDING);\r
+ expect(frame.updateState(3).state).toBe(frame.ENDING);\r
expect(frame.state).toBe(frame.ENDING);\r
- expect(frame.updateState(4)).toBe(frame.POSTWAITING);\r
+ expect(frame.updateState(4).state).toBe(frame.POSTWAITING);\r
expect(frame.state).toBe(frame.POSTWAITING);\r
} );\r
} );\r