OSDN Git Service

Add an advance method to the object
authordhrname <dhrname@users.sourceforge.jp>
Wed, 25 Feb 2015 13:07:52 +0000 (22:07 +0900)
committerdhrname <dhrname@users.sourceforge.jp>
Wed, 25 Feb 2015 13:07:52 +0000 (22:07 +0900)
org/w3c/dom/smil.js
tool/Spec/spec/SvgDomSpec.js

index 0b510d3..4db45a8 100644 (file)
@@ -467,5 +467,10 @@ base("$from").of( {
   }\r
     \r
 } )\r
+ .mix( {\r
+    advance: function() {\r
+      return "";\r
+    }\r
+  } )\r
  .up("$to");\r
 //#endif // _SMIL_IDL_\r
index 4f7b79b..47ebc10 100644 (file)
@@ -2952,6 +2952,33 @@ describe("SMIL Animation Spec", function() {
     } );\r
     /*無効同値クラスを調べておく (Equivalence partitioning, the following is the invalid partion)*/\r
     it("should be this for the value (the invalid partion)", function() {\r
+      from.call();\r
+      from.up("$to").mix( function() {\r
+        this.string = "12cm";\r
+        this.call();\r
+        expect(this.numList).toBeNull();\r
+        expect(this.strList).toBeNull();\r
+      } );\r
     } );\r
+    \r
+    describe("An advance method", function() {\r
+      var from = base("$from");\r
+       beforeEach( function() {\r
+         from = base("$from").up();\r
+         from.string = "";\r
+         from.up("$to");\r
+       } );\r
+      /*境界条件を調べておく (limit value analysis)*/\r
+      it("should be this for the value  (limit value analysis)", function() {\r
+        expect(from.advance()).toBe("");\r
+        expect(from.$to.advance()).toBe("");\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
 } );\r