OSDN Git Service

Modify the a _setFrame method
authordhrname <dhrname@users.sourceforge.jp>
Wed, 6 Apr 2016 14:32:50 +0000 (23:32 +0900)
committerdhrname <dhrname@users.sourceforge.jp>
Wed, 6 Apr 2016 14:32:50 +0000 (23:32 +0900)
org/w3c/dom/smil.js
tool/Spec/spec/SvgDomSpec.js

index 8374870..bc2493f 100644 (file)
@@ -1111,7 +1111,7 @@ base("$calcMode").up("$attribute").mix( {
                     ) && (this.state === "playing") ) {\r
                 this.isEnd = true;\r
                 /*removeの場合、アニメーションを凍結せずに、もとに戻す*/\r
-                if ((this.fill === "remove")) {\r
+                if (this.fill === "remove") {\r
                   this.removeAttribute();\r
                 }\r
                 /*stateプロパティを書き換えることで、一度のみ、終了処理させる*/\r
@@ -1190,6 +1190,7 @@ base("$calcMode").up("$attribute").mix( {
         advance = duration ? ( (currentTime - line.begin) % duration ) / duration\r
                     : 0;\r
     this.setAttribute(this.tocall(advance));\r
+    this.state = "playing";\r
     line = duration = advance = void 0;\r
   },\r
   \r
index 6c3de80..c0e749e 100644 (file)
@@ -401,6 +401,7 @@ describe("SMIL Animation Spec", function() {
       /*境界条件を調べておく (limit value analysis)*/\r
       it("should be this for the value  (limit value analysis)", function() {\r
         expect(begin.parse().begin).toBe(0);\r
+        expect(begin.isResolved).toBeTruthy();\r
         begin.string="+0";\r
         expect(begin.parse().begin).toBe(0);\r
         begin.string = "+1";\r