OSDN Git Service

Modify the Spec for the object
authordhrname <dhrname@users.sourceforge.jp>
Wed, 25 Feb 2015 12:51:19 +0000 (21:51 +0900)
committerdhrname <dhrname@users.sourceforge.jp>
Wed, 25 Feb 2015 12:51:19 +0000 (21:51 +0900)
org/w3c/dom/smil.js
tool/Spec/spec/SvgDomSpec.js

index 25409c3..0b510d3 100644 (file)
@@ -460,8 +460,9 @@ base("$from").of( {
     return this.string.match(/[^\d\-\+\.eE]+/g);\r
   },\r
   \r
-  /*$advanceオブジェクトに適用させる関数*/\r
+  /*$toオブジェクトにこのオブジェクトを適用させる関数*/\r
   call: function() {\r
+    this.$to.from = this;\r
     return this.$to;\r
   }\r
     \r
index 86c430c..4f7b79b 100644 (file)
@@ -2939,6 +2939,15 @@ describe("SMIL Animation Spec", function() {
       from.$to.string = "12cm-7";\r
       expect(from.$to.numList().join(",")).toBe("12,-7");\r
       expect(from.$to.strList().toString()).toBe("cm");\r
+      \r
+      from.string = "7cm+8";\r
+      from.$to.call();\r
+      expect(from.call()).toBe(from.$to);\r
+      expect(from.$to.numList.join(",")).toBe("12,-7");\r
+      expect(from.$to.strList.toString()).toBe("cm");\r
+      expect(from.numList.join(",")).toBe("7,8");\r
+      expect(from.strList.toString()).toBe("cm");\r
+      expect(from.$to.from).toBe(from);\r
 \r
     } );\r
     /*無効同値クラスを調べておく (Equivalence partitioning, the following is the invalid partion)*/\r