expect(attr.element).toBe(p);\r
expect(attr.frame.timelines.length).toEqual(0);\r
\r
- s.setAttribute("from");\r
- expect(s.hasAttributeNS(null, "from")).toBeTruthy();\r
- attr.push(s);\r
- expect(attr.element).toBe(p);\r
- expect(attr.frame.timelines.length).toEqual(1);\r
+ check("from", 1);\r
+ check("to", 2);\r
+ check("by", 3);\r
+ check("values", 4);\r
+ function check(attrName, num) {\r
+ s.setAttribute(attrName, "1");\r
+ expect(s.hasAttributeNS(null, attrName)).toBeTruthy();\r
+ attr.push(s);\r
+ expect(attr.element).toBe(p);\r
+ expect(attr.frame.timelines.length).toEqual(num);\r
+ \r
+ s.removeAttribute(attrName);\r
+ expect(s.hasAttributeNS(null, attrName)).toBeFalsy();\r
+ attr.push(s);\r
+ expect(attr.element).toBe(p);\r
+ expect(attr.frame.timelines.length).toEqual(num);\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