From 2af377fe1e488ff44bb3e9fbeaed73abd69ff135 Mon Sep 17 00:00:00 2001 From: dhrname Date: Wed, 26 Oct 2016 23:07:27 +0900 Subject: [PATCH] Modify the updateState method --- org/w3c/dom/smil.js | 4 ++-- tool/Spec/spec/SvgDomSpec.js | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/org/w3c/dom/smil.js b/org/w3c/dom/smil.js index e03b397..130068a 100644 --- a/org/w3c/dom/smil.js +++ b/org/w3c/dom/smil.js @@ -194,8 +194,8 @@ base("$frame").mix ( { this.state = begin; } } else if (state === begin) { - if (startTime === endTime) { - /*開始時刻と終了時刻が一致したときは、直接BEGINNING状態からENDING状態へ移行*/ + if (endTime >= cacheBegin) { + /*終了時刻にもう到達したときは、直接BEGINNING状態からENDING状態へ移行*/ this.state = end; } else { this.state = play; diff --git a/tool/Spec/spec/SvgDomSpec.js b/tool/Spec/spec/SvgDomSpec.js index 3d2e4ba..8c634a4 100644 --- a/tool/Spec/spec/SvgDomSpec.js +++ b/tool/Spec/spec/SvgDomSpec.js @@ -504,7 +504,6 @@ describe("SMIL Animation Spec", function() { var $list = begin.$list; expect(begin.$list).toBe($list); expect(begin.updateList().$list).not.toBe($list); - console.log(begin.$activate); } ); /*無効同値クラスを調べておく (Equivalence partitioning, the following is the invalid partion)*/ it("should be this for the value (the invalid partion)", function() { -- 2.11.0