/*前述の$frameオブジェクトでフレームを記述*/\r
frame: base("$frame"),\r
\r
+ /*SMILアニメーション関連の要素。たとえばanimate要素*/\r
+ element: null,\r
+ \r
/*引数で指定した要素 ele の属性を解析して、フレームに追加する*/\r
- push: function() {\r
+ push: function(/*Element Node*/ ele) {\r
+ this.element = ele || null;\r
}\r
} );\r
//#endif // _SMIL_IDL_\r
/*境界条件を調べておく (limit value analysis)*/\r
it("should be this for the value (limit value analysis)", function() {\r
expect(attr.frame).toBe(base("$frame"));\r
+ expect(attr.element).toBeNull();\r
attr.push();\r
+ expect(attr.element).toBeNull();\r
expect(attr.frame.timelines.length).toEqual(0);\r
\r
attr.push(document.documentElement);\r
+ expect(attr.element).toBe(document.documentElement);\r
expect(attr.frame.timelines.length).toEqual(0);\r
- attr.push(document.createElement("animate"));\r
+ var s = document.createElement("animate");\r
+ attr.push(s);\r
+ expect(attr.element).toBe(s);\r
expect(attr.frame.timelines.length).toEqual(0);\r
} );\r
/*同値分割をして、有効同値クラスを調べておく (Equivalence partitioning, the following is the valid partion)*/\r
it("should be this for the value (the invalid partion on a spline mode )", function() {\r
} );\r
} );\r
- describe("A ", function() {\r
+ describe("A getAttr method", function() {\r
var attr;\r
beforeEach( function() {\r
attr = base("$calcMode").$attribute.up("width");\r