} )\r
})\r
.listener( {\r
- timeStamp: 0\r
+ timeStamp: Date.now()\r
} );\r
expect(obj.$1.begin).toBe(1);\r
expect(obj.$1.activeTime).toEqual(Math.floor(1000*obj.fpms) - 1);\r
} )\r
})\r
.listener( {\r
- timeStamp: 0\r
+ timeStamp: Date.now()\r
} );\r
expect(obj.$1.begin).toBe(1);\r
expect(obj.$1.activeTime).toEqual(Math.floor(1000*obj.fpms) - 1);\r
expect(obj.$1.$activate.begin).toBe(obj.$1.begin);\r
expect(obj.timelines[1]).toBe(obj.$1);\r
obj.$1.listener( {\r
- timeStamp: 500\r
+ timeStamp: (Date.now() + 500)\r
} );\r
expect(obj.$1.begin).toBe(Math.floor(500*obj.fpms) + 1);\r
expect(obj.$1.activeTime).toEqual(Math.floor(1000*obj.fpms) - Math.floor(500*obj.fpms) - 1);\r
end.startTime = 0;\r
beforeEach( function() {\r
end.string = "";\r
+ end.startTime = Date.now();\r
+ end.setFrame(0);\r
} );\r
/*境界条件を調べておく (limit value analysis)*/\r
it("should be this for the value (limit value analysis)", function() {\r
activeTime: 120\r
} ) );\r
obj.listener({\r
- timeStamp: 12\r
+ timeStamp: (Date.now() + 12)\r
} );\r
expect(obj.timelines[0]).not.toBe(obj.$begin);\r
} );\r
string: "event"\r
} ).parse();\r
obj.listener({\r
- timeStamp: 120\r
+ timeStamp: (Date.now() + 120)\r
} );\r
expect(obj.timelines[0]).not.toBe(obj.$begin);\r
expect(obj.begin).toEqual(Math.floor(120*obj.fpms));\r
string: "event+1000ms"\r
} ).parse();\r
obj.listener({\r
- timeStamp: 12\r
+ timeStamp: (Date.now() + 12)\r
} );\r
expect(obj.timelines[0]).toBe(obj.$begin);\r
expect(obj.begin).toEqual(Math.floor(1012*obj.fpms));\r
p.appendChild(ele);\r
frame = base("$frame");\r
frame.timelines.length = 0; //配列の初期化\r
+ frame.startTime = Date.now();\r
+ frame.setFrame(0);\r
} );\r
/*境界条件を調べておく (limit value analysis)*/\r
it("should be this for the value (limit value analysis)", function() {\r
expect(ele.parentNode.getAttributeNS(null, "fill")).toBe("red");\r
} );\r
/*同値分割をして、有効同値クラスを調べておく (Equivalence partitioning, the following is the valid partion)*/\r
- it("should be this for the value (the valid partion on a spline mode )", function() {\r
+ it("should be this for the value (the valid partion)", function() {\r
ele.setAttributeNS(null, "begin", "1s");\r
ele.setAttributeNS(null, "dur", "1s");\r
ele.setAttributeNS(null, "attributeName", "fill");\r
expect(ele.parentNode.getAttributeNS(null, "fill") || null).toBe("red");\r
} );\r
/*無効同値クラスを調べておく (Equivalence partitioning, the following is the invalid partion)*/\r
- it("should be this for the value (the invalid partion on a spline mode )", function() {\r
+ it("should be this for the value (the invalid partion)", function() {\r
ele.setAttributeNS(null, "begin", "1s");\r
ele.setAttributeNS(null, "attributeName", "fill");\r
ele.setAttributeNS(null, "to", "red");\r
p.appendChild(ele);\r
frame = base("$frame");\r
frame.timelines.length = 0;\r
+ frame.startTime = Date.now();\r
+ frame.setFrame(0);\r
} );\r
/*境界条件を調べておく (limit value analysis)*/\r
it("should be this for the value (limit value analysis)", function() {\r