OSDN Git Service

Modify the Spec about base.js
authordhrname <dhrname@users.sourceforge.jp>
Sun, 25 Jan 2015 14:34:24 +0000 (23:34 +0900)
committerdhrname <dhrname@users.sourceforge.jp>
Sun, 25 Jan 2015 14:34:24 +0000 (23:34 +0900)
org/w3c/dom/smil.js
tool/Spec/spec/SvgDomSpec.js

index 6212299..ff5724f 100644 (file)
@@ -194,7 +194,7 @@ base("$frame").mix ( {
     /*開始時刻やタイミングが書かれた文字列*/\r
     string: "",\r
     trim: function() {\r
-      return ( this.string = this.string.replace(/\s\n/g, "") );\r
+      return ( this.string = this.string.replace(/[\s\n]+/g, "") );\r
     },\r
     offset: function() {\r
       return parseFloat(this.trim().match(/[\+\-]?\d+$/));\r
index 2777445..d2d1850 100644 (file)
@@ -2124,7 +2124,7 @@ describe("SMIL Animation Spec", function() {
     /*同値分割をして、有効同値クラスを調べておく (Equivalence partitioning, the following is the valid partion)*/\r
     it("should be this for the value (the valid partion)", function() {\r
       begin.string = " hoge ";\r
-      expect(begin.trim()).toBe("w");\r
+      expect(begin.trim()).toBe("hoge");\r
     } );\r
     /*無効同値クラスを調べておく (Equivalence partitioning, the following is the invalid partion)*/\r
     it("should be this for the value (the invalid partion)", function() {\r