OSDN Git Service

Modify the updateState method
authordhrname <dhrname@users.sourceforge.jp>
Wed, 26 Oct 2016 14:07:27 +0000 (23:07 +0900)
committerdhrname <dhrname@users.sourceforge.jp>
Wed, 26 Oct 2016 14:07:27 +0000 (23:07 +0900)
org/w3c/dom/smil.js
tool/Spec/spec/SvgDomSpec.js

index e03b397..130068a 100644 (file)
@@ -194,8 +194,8 @@ base("$frame").mix ( {
           this.state = begin;\r
         }\r
       } else if (state === begin) {\r
-        if (startTime === endTime) {\r
-          /*開始時刻と終了時刻が一致したときは、直接BEGINNING状態からENDING状態へ移行*/\r
+        if (endTime >= cacheBegin) {\r
+          /*終了時刻にもう到達したときは、直接BEGINNING状態からENDING状態へ移行*/\r
           this.state = end;\r
         } else {\r
           this.state = play;\r
index 3d2e4ba..8c634a4 100644 (file)
@@ -504,7 +504,6 @@ describe("SMIL Animation Spec", function() {
       var $list = begin.$list;\r
       expect(begin.$list).toBe($list);\r
       expect(begin.updateList().$list).not.toBe($list);\r
-      console.log(begin.$activate);\r
     } );\r
     /*無効同値クラスを調べておく (Equivalence partitioning, the following is the invalid partion)*/\r
     it("should be this for the value (the invalid partion)", function() {\r