OSDN Git Service

Modify the Spec
authordhrname <dhrname@users.sourceforge.jp>
Wed, 8 Apr 2015 12:11:11 +0000 (21:11 +0900)
committerdhrname <dhrname@users.sourceforge.jp>
Wed, 8 Apr 2015 12:11:11 +0000 (21:11 +0900)
tool/Spec/spec/SvgDomSpec.js

index fb22d62..81242a2 100644 (file)
@@ -3311,11 +3311,12 @@ describe("SMIL Animation Spec", function() {
   } );\r
   describe("A $attribute object", function() {\r
     describe("An push method", function() {\r
-      var attr;\r
+      var attr, s, p;\r
       beforeEach( function() {\r
         attr = base("$calcMode").$attribute.up("width");\r
         base("$frame").timelines.length = 0;\r
         base("$frame").startTime = Date.now();\r
+        s = document.createElement("animate");\r
       } );\r
       /*境界条件を調べておく (limit value analysis)*/\r
       it("should be this for the value  (limit value analysis)", function() {\r
@@ -3325,7 +3326,6 @@ describe("SMIL Animation Spec", function() {
         expect(attr.element).toBeNull();\r
         expect(attr.frame.timelines.length).toEqual(0);\r
         \r
-        var s = document.createElement("animate");\r
         attr.push(s);\r
         expect(attr.element).toBeNull();\r
         expect(attr.frame.timelines.length).toEqual(0);\r
@@ -3362,8 +3362,12 @@ describe("SMIL Animation Spec", function() {
           expect(attr.element).toBe(p);\r
           expect(attr.frame.timelines.length).toEqual(num);\r
         };\r
-        \r
+      } );\r
+      /*同値分割をして、有効同値クラスを調べておく (Equivalence partitioning, the following is the valid partion)*/\r
+      it("should be this for the value (the valid partion on a spline mode )", function() {\r
         s.setAttribute("from", "1");\r
+        var p = document.createElement("g");\r
+        p.appendChild(s);\r
         var values = [ "0",\r
                       null, null, null, null, \r
                       "0", "indefinite"\r
@@ -3399,9 +3403,6 @@ describe("SMIL Animation Spec", function() {
           expect(act.max).toBe(values[6]);\r
         }\r
       } );\r
-      /*同値分割をして、有効同値クラスを調べておく (Equivalence partitioning, the following is the valid partion)*/\r
-      it("should be this for the value (the valid partion on a spline mode )", function() {\r
-      } );\r
       /*無効同値クラスを調べておく (Equivalence partitioning, the following is the invalid partion)*/\r
       it("should be this for the value (the invalid partion on a spline mode )", function() {\r
       } );\r