From: dhrname Date: Wed, 29 Apr 2015 14:23:51 +0000 (+0900) Subject: Add the Spec for the setValues method X-Git-Tag: version22~209 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=9ff03868c784dad0b3193b4c089be4ee36ff816e;p=sie%2Fsie.git Add the Spec for the setValues method --- diff --git a/org/w3c/dom/smil.js b/org/w3c/dom/smil.js index 2ed2cd4..fe81475 100644 --- a/org/w3c/dom/smil.js +++ b/org/w3c/dom/smil.js @@ -147,7 +147,7 @@ base("$frame").mix ( { /*開始時刻 (文書が読み込まれたときにDate.nowなどで取得)*/ startTime: 0, - /*活動持続時間 (Active Duration)のフレーム数。アニメーションの継続条件となる + /*活動継続時間 (Active Duration)のフレーム数。アニメーションの継続条件となる * 単位はフレーム数であって、秒数ではない*/ activeTime: Number.MAX_VALUE, @@ -306,11 +306,11 @@ base("$frame").mix ( { } /*$activate オブジェクト - * 活動持続時間などを計算するための計算実体 + * 活動継続時間などを計算するための計算実体 * $begin オブジェクトからの継承*/ } ).up("$activate").of( { - /*単純持続時間のパースされる前の文字列*/ + /*単純継続時間のパースされる前の文字列*/ dur: "indefinite", /*活動をストップさせるためのオブジェクト*/ @@ -322,7 +322,7 @@ base("$frame").mix ( { /*繰り返し時間*/ repeatDur: null, - /*単純持続時間 (単位はフレーム数)*/ + /*単純継続時間 (単位はフレーム数)*/ simpleDur: function() { return ( (this.dur === "indefinite") || !this.dur ) ? null @@ -330,11 +330,11 @@ base("$frame").mix ( { }, /*最小値に制限される - * 最小値 <= 活動持続時間 とならなければならない*/ + * 最小値 <= 活動継続時間 とならなければならない*/ min: "0", /*最大値に制限される - * 活動持続時間 <= 最大値 とならなければならない*/ + * 活動継続時間 <= 最大値 とならなければならない*/ max: "indefinite", /*解決した(計算する)ときの時間*/ @@ -344,7 +344,7 @@ base("$frame").mix ( { /*関数型の呼び出しメソッド * base.jsのofメソッドを活用して、関数型っぽい処理をする - * 以下では、活動持続時間を算出 + * 以下では、活動継続時間を算出 * 計算方法はSMILアニメーション 3.3.4節を参照 * http://www.w3.org/TR/smil-animation/#ComputingActiveDur */ @@ -380,7 +380,7 @@ base("$frame").mix ( { } /*長くなるため、インライン関数を活用 - * indef関数は活動持続時間が不定かどうか、もし、不定なら真を返す*/ + * indef関数は活動継続時間が不定かどうか、もし、不定なら真を返す*/ function indef() { if(isIndefEnd) { return true; diff --git a/tool/Spec/spec/SvgDomSpec.js b/tool/Spec/spec/SvgDomSpec.js index 281ed23..93a339e 100644 --- a/tool/Spec/spec/SvgDomSpec.js +++ b/tool/Spec/spec/SvgDomSpec.js @@ -3511,6 +3511,9 @@ describe("SMIL Animation Spec", function() { } ); /*無効同値クラスを調べておく (Equivalence partitioning, the following is the invalid partion)*/ it("should be this for the value (the invalid partion on a spline mode )", function() { + attr.$from.degit = 1; + expect(attr.setValues([])).toBeNull(); + expect(attr.setValues(null, null, null, null)).toBeNull(); } ); } ); } );