OSDN Git Service

Modify the Spec
authordhrname <dhrname@users.sourceforge.jp>
Tue, 18 Aug 2015 10:18:36 +0000 (19:18 +0900)
committerdhrname <dhrname@users.sourceforge.jp>
Tue, 18 Aug 2015 10:18:36 +0000 (19:18 +0900)
tool/Spec/spec/SvgDomSpec.js

index 037424a..4dc1d8a 100644 (file)
@@ -2452,7 +2452,7 @@ describe("SMIL Animation Spec", function() {
                   } )\r
               })\r
               .listener( {\r
-                timeStamp: 0\r
+                timeStamp: Date.now()\r
               } );\r
         expect(obj.$1.begin).toBe(1);\r
         expect(obj.$1.activeTime).toEqual(Math.floor(1000*obj.fpms) - 1);\r
@@ -2468,14 +2468,14 @@ describe("SMIL Animation Spec", function() {
                   } )\r
               })\r
               .listener( {\r
-                timeStamp: 0\r
+                timeStamp: Date.now()\r
               } );\r
         expect(obj.$1.begin).toBe(1);\r
         expect(obj.$1.activeTime).toEqual(Math.floor(1000*obj.fpms) - 1);\r
         expect(obj.$1.$activate.begin).toBe(obj.$1.begin);\r
         expect(obj.timelines[1]).toBe(obj.$1);\r
         obj.$1.listener( {\r
-          timeStamp: 500\r
+          timeStamp: (Date.now() + 500)\r
         } );\r
         expect(obj.$1.begin).toBe(Math.floor(500*obj.fpms) + 1);\r
         expect(obj.$1.activeTime).toEqual(Math.floor(1000*obj.fpms) - Math.floor(500*obj.fpms) - 1);\r
@@ -2495,6 +2495,8 @@ describe("SMIL Animation Spec", function() {
     end.startTime = 0;\r
     beforeEach( function() {\r
       end.string = "";\r
+      end.startTime = Date.now();\r
+      end.setFrame(0);\r
     } );\r
     /*境界条件を調べておく (limit value analysis)*/\r
     it("should be this for the value  (limit value analysis)", function() {\r
@@ -2548,7 +2550,7 @@ describe("SMIL Animation Spec", function() {
           activeTime: 120\r
         } ) );\r
         obj.listener({\r
-          timeStamp: 12\r
+          timeStamp: (Date.now() + 12)\r
         } );\r
         expect(obj.timelines[0]).not.toBe(obj.$begin);\r
       } );\r
@@ -2559,7 +2561,7 @@ describe("SMIL Animation Spec", function() {
           string: "event"\r
         } ).parse();\r
         obj.listener({\r
-          timeStamp: 120\r
+          timeStamp: (Date.now() + 120)\r
         } );\r
         expect(obj.timelines[0]).not.toBe(obj.$begin);\r
         expect(obj.begin).toEqual(Math.floor(120*obj.fpms));\r
@@ -2574,7 +2576,7 @@ describe("SMIL Animation Spec", function() {
           string: "event+1000ms"\r
         } ).parse();\r
         obj.listener({\r
-          timeStamp: 12\r
+          timeStamp: (Date.now() + 12)\r
         } );\r
         expect(obj.timelines[0]).toBe(obj.$begin);\r
         expect(obj.begin).toEqual(Math.floor(1012*obj.fpms));\r
@@ -3731,6 +3733,8 @@ describe("SMIL Animation Spec", function() {
         p.appendChild(ele);\r
         frame = base("$frame");\r
         frame.timelines.length = 0; //配列の初期化\r
+        frame.startTime = Date.now();\r
+        frame.setFrame(0);\r
       } );\r
       /*境界条件を調べておく (limit value analysis)*/\r
       it("should be this for the value  (limit value analysis)", function() {\r
@@ -3743,7 +3747,7 @@ describe("SMIL Animation Spec", function() {
         expect(ele.parentNode.getAttributeNS(null, "fill")).toBe("red");\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
+      it("should be this for the value (the valid partion)", function() {\r
         ele.setAttributeNS(null, "begin", "1s");\r
         ele.setAttributeNS(null, "dur", "1s");\r
         ele.setAttributeNS(null, "attributeName", "fill");\r
@@ -3778,7 +3782,7 @@ describe("SMIL Animation Spec", function() {
         expect(ele.parentNode.getAttributeNS(null, "fill") || null).toBe("red");\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
+      it("should be this for the value (the invalid partion)", function() {\r
         ele.setAttributeNS(null, "begin", "1s");\r
         ele.setAttributeNS(null, "attributeName", "fill");\r
         ele.setAttributeNS(null, "to", "red");\r
@@ -3807,6 +3811,8 @@ describe("SMIL Animation Spec", function() {
           p.appendChild(ele);\r
           frame = base("$frame");\r
           frame.timelines.length = 0;\r
+          frame.startTime = Date.now();\r
+          frame.setFrame(0);\r
         } );\r
         /*境界条件を調べておく (limit value analysis)*/\r
         it("should be this for the value  (limit value analysis)", function() {\r