From 629726581cf77c33e82e9ca15a7136c620ff21cb Mon Sep 17 00:00:00 2001 From: dhrname Date: Wed, 25 Feb 2015 21:51:19 +0900 Subject: [PATCH] Modify the Spec for the object --- org/w3c/dom/smil.js | 3 ++- tool/Spec/spec/SvgDomSpec.js | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/org/w3c/dom/smil.js b/org/w3c/dom/smil.js index 25409c3..0b510d3 100644 --- a/org/w3c/dom/smil.js +++ b/org/w3c/dom/smil.js @@ -460,8 +460,9 @@ base("$from").of( { return this.string.match(/[^\d\-\+\.eE]+/g); }, - /*$advanceオブジェクトに適用させる関数*/ + /*$toオブジェクトにこのオブジェクトを適用させる関数*/ call: function() { + this.$to.from = this; return this.$to; } diff --git a/tool/Spec/spec/SvgDomSpec.js b/tool/Spec/spec/SvgDomSpec.js index 86c430c..4f7b79b 100644 --- a/tool/Spec/spec/SvgDomSpec.js +++ b/tool/Spec/spec/SvgDomSpec.js @@ -2939,6 +2939,15 @@ describe("SMIL Animation Spec", function() { from.$to.string = "12cm-7"; expect(from.$to.numList().join(",")).toBe("12,-7"); expect(from.$to.strList().toString()).toBe("cm"); + + from.string = "7cm+8"; + from.$to.call(); + expect(from.call()).toBe(from.$to); + expect(from.$to.numList.join(",")).toBe("12,-7"); + expect(from.$to.strList.toString()).toBe("cm"); + expect(from.numList.join(",")).toBe("7,8"); + expect(from.strList.toString()).toBe("cm"); + expect(from.$to.from).toBe(from); } ); /*無効同値クラスを調べておく (Equivalence partitioning, the following is the invalid partion)*/ -- 2.11.0