expect(attr.element).toBe(p);\r
expect(attr.frame.timelines.length).toEqual(num);\r
};\r
+ \r
+ s.setAttribute("from", "1");\r
+ var values = [ "0",\r
+ null, null, null, null, \r
+ "0", "indefinite"\r
+ ];\r
+ check2("begin", "0");\r
+ values[0] = "1";\r
+ check2("begin", "1");\r
+ values[1] = "0";\r
+ check2("dur", "0");\r
+ values[2] = 0;\r
+ check2("end", "0");\r
+ values[3] = "0";\r
+ check2("repeatCount", "0");\r
+ values[4] = "0";\r
+ check2("repeatDur", "0");\r
+ values[5] = "0";\r
+ check2("min", "0");\r
+ values[6] = "0";\r
+ check2("max", "0");\r
+ function check2(attrName, value) {\r
+ s.setAttribute(attrName, value);\r
+ expect(s.hasAttributeNS(null, attrName)).toBeTruthy();\r
+ attr.push(s);\r
+ expect(attr.element).toBe(p);\r
+ var line = attr.frame.timelines[attr.frame.timelines.length-1];\r
+ expect(line.string).toBe(values[0]);\r
+ var act = line.$activate;\r
+ expect(act.dur).toBe(values[1]);\r
+ expect(act.end).toBe(values[2]);\r
+ expect(act.repeatCount).toBe(values[3]);\r
+ expect(act.repeatDur).toBe(values[4]);\r
+ expect(act.min).toBe(values[5]);\r
+ expect(act.max).toBe(values[6]);\r
+ }\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