OSDN Git Service

New object
authordhrname <dhrname@users.sourceforge.jp>
Sat, 4 Apr 2015 14:16:55 +0000 (23:16 +0900)
committerdhrname <dhrname@users.sourceforge.jp>
Sat, 4 Apr 2015 14:16:55 +0000 (23:16 +0900)
org/w3c/dom/smil.js
tool/Spec/spec/SvgDomSpec.js

index 5d3a351..e057706 100644 (file)
@@ -674,4 +674,18 @@ Math.qubicnewton = function(a0, a1, a2, a3, b) {
   }\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
index 40fe859..d92154c 100644 (file)
@@ -3309,4 +3309,45 @@ describe("SMIL Animation Spec", function() {
       } ).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