OSDN Git Service

Modify the _setFrame method
authordhrname <dhrname@users.sourceforge.jp>
Fri, 28 Oct 2016 13:42:04 +0000 (22:42 +0900)
committerdhrname <dhrname@users.sourceforge.jp>
Fri, 28 Oct 2016 13:42:04 +0000 (22:42 +0900)
org/w3c/dom/smil.js
tool/Spec/spec/SvgDomSpec.js

index 3918046..9d713f0 100644 (file)
@@ -1356,7 +1356,7 @@ base("$calcMode").up("$attribute").mix( {
         /*単純継続時間が不定の場合、補間はせずに初期値が採用されるため、advanceは0となる\r
          * 仕様を参照 SMIL Animation 3.2.2. Animation function values のInterpolation and indefinite simple durations\r
          * http://www.w3.org/TR/2001/REC-smil-animation-20010904/#AnimFuncValues*/\r
-        advance = duration ? ( (currentTime - line.begin) % duration ) / duration\r
+        advance = duration ? ( (currentTime - $list.begin) % duration ) / duration\r
                     : 0;\r
     this.setAttribute(this.tocall(advance));\r
     line = duration = advance = void 0;\r
index 902c7a9..15e3d05 100644 (file)
@@ -2192,8 +2192,10 @@ describe("SMIL Animation Spec", function() {
         frame.setFrame(0);\r
         expect(ele.parentNode.getAttributeNS(null, "fill")).toBe("red");\r
         \r
+        var line = $set.timeline;\r
+        expect(line.$list.state).toBe(line.$list.PLAYING);\r
         frame.setFrame(24);\r
-        expect($set.timeline.state).toBe($set.timeline.POSTWAITNG);\r
+        expect(line.$list.state).toBe(line.$list.POSTWAITING);\r
         expect(ele.parentNode.hasAttributeNS(null, "fill")).toBeFalsy();\r
       } );\r
       /*同値分割をして、有効同値クラスを調べておく (Equivalence partitioning, the following is the valid partion)*/\r