OSDN Git Service

New object
authordhrname <dhrname@users.sourceforge.jp>
Sat, 21 Feb 2015 11:31:34 +0000 (20:31 +0900)
committerdhrname <dhrname@users.sourceforge.jp>
Sat, 21 Feb 2015 11:31:34 +0000 (20:31 +0900)
org/w3c/dom/smil.js
tool/Spec/spec/SvgDomSpec.js

index 3765d1f..aa9f99e 100644 (file)
@@ -205,6 +205,7 @@ base("$frame").mix ( {
     /*trim メソッド\r
      * 文字列中の空白を除去*/\r
     trim: function(str) {\r
+      /*strがString型以外のときは必ずエラーを出す*/\r
       return str.replace(/[\s\n]+/g, "");\r
     },\r
 \r
@@ -437,8 +438,19 @@ base("$frame").mix ( {
     }\r
   } );\r
 } );\r
-/*$presentvalue オブジェクト\r
+/*$from オブジェクト\r
  * 呈示値 (presentation value)の計算をする。値そのものを返すための計算実体*/\r
-base("$presentvalue").mix( {\r
+base("$from").of( {\r
+  /*呈示値が書かれた文字列*/\r
+  string: "",\r
+  \r
+  /*呈示値の数値の部分だけを抜き出した配列を返す*/\r
+  numList: function() {\r
+    return this.string.match(/a/g);\r
+  },\r
+  \r
+  /*呈示値の文字部分だけを抜き出した配列を返す*/\r
+  strList: function() {\r
+  }\r
 } );\r
 //#endif // _SMIL_IDL_\r
index 8bf0f95..532faaa 100644 (file)
@@ -2808,4 +2808,21 @@ describe("SMIL Animation Spec", function() {
       expect(act.call()).toBeNull();\r
     } );\r
   } );\r
-} )\r
+  describe("A $activate object", function() {\r
+    var from = base("$from");\r
+     beforeEach( function() {\r
+     } );\r
+    /*境界条件を調べておく (limit value analysis)*/\r
+    it("should be this for the value  (limit value analysis)", function() {\r
+      expect(from.string).toBe("");\r
+      expect(from.numList()).toBeNull();\r
+      expect(from.strList()).toBeNull();\r
+    } );\r
+    /*同値分割をして、有効同値クラスを調べておく (Equivalence partitioning, the following is the valid partion)*/\r
+    it("should be this for the value (the valid partion)", function() {\r
+    } );\r
+    /*無効同値クラスを調べておく (Equivalence partitioning, the following is the invalid partion)*/\r
+    it("should be this for the value (the invalid partion)", function() {\r
+    } )\r
+  } );\r
+} );\r