} );\r
describe("A $attribute object", function() {\r
describe("An push method", function() {\r
- var attr;\r
+ var attr, s, p;\r
beforeEach( function() {\r
attr = base("$calcMode").$attribute.up("width");\r
base("$frame").timelines.length = 0;\r
base("$frame").startTime = Date.now();\r
+ s = document.createElement("animate");\r
} );\r
/*境界条件を調べておく (limit value analysis)*/\r
it("should be this for the value (limit value analysis)", function() {\r
expect(attr.element).toBeNull();\r
expect(attr.frame.timelines.length).toEqual(0);\r
\r
- var s = document.createElement("animate");\r
attr.push(s);\r
expect(attr.element).toBeNull();\r
expect(attr.frame.timelines.length).toEqual(0);\r
expect(attr.element).toBe(p);\r
expect(attr.frame.timelines.length).toEqual(num);\r
};\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
s.setAttribute("from", "1");\r
+ var p = document.createElement("g");\r
+ p.appendChild(s);\r
var values = [ "0",\r
null, null, null, null, \r
"0", "indefinite"\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
- } );\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
} );\r