}\r
return b; //収束しなかった結果\r
};\r
+\r
+/*$attribute オブジェクト\r
+ * アニメーションの時間調整と、呈示値の調整を一つのオブジェクトにまとめて行うことで、\r
+ * アニメーションサンドイッチの実装をする\r
+ * $calcModeオブジェクトから継承*/\r
+base("$calcMode").up("$attribute").mix( {\r
+ \r
+ /*前述の$frameオブジェクトでフレームを記述*/\r
+ frame: base("$frame"),\r
+ \r
+ /*引数で指定した要素 ele の属性を解析して、フレームに追加する*/\r
+ push: function() {\r
+ }\r
+} );\r
//#endif // _SMIL_IDL_\r
} ).toThrow("An Invalid Number Error");\r
} );\r
} );\r
+ describe("A $attribute object", function() {\r
+ describe("An push method", function() {\r
+ var attr;\r
+ beforeEach( function() {\r
+ attr = base("$calcMode").$attribute.up("width");\r
+ base("$frame").timelines.length = 0;\r
+ } );\r
+ /*境界条件を調べておく (limit value analysis)*/\r
+ it("should be this for the value (limit value analysis)", function() {\r
+ expect(attr.frame).toBe(base("$frame"));\r
+ attr.push();\r
+ expect(attr.frame.timelines.length).toEqual(0);\r
+ \r
+ attr.push(document.documentElement);\r
+ expect(attr.frame.timelines.length).toEqual(0);\r
+ attr.push(document.createElement("animate"));\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 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
+ } );\r
+ describe("A ", function() {\r
+ var attr;\r
+ beforeEach( function() {\r
+ attr = base("$calcMode").$attribute.up("width");\r
+ } );\r
+ /*境界条件を調べておく (limit value analysis)*/\r
+ it("should be this for the value (limit value analysis)", function() {\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
+ } );\r
+ } );\r
} );\r