OSDN Git Service

Modify the Spec for the object
authordhrname <dhrname@users.sourceforge.jp>
Sun, 5 Apr 2015 11:08:28 +0000 (20:08 +0900)
committerdhrname <dhrname@users.sourceforge.jp>
Sun, 5 Apr 2015 11:08:28 +0000 (20:08 +0900)
org/w3c/dom/smil.js
tool/Spec/spec/SvgDomSpec.js

index 45b9416..80862b6 100644 (file)
@@ -704,7 +704,7 @@ base("$calcMode").up("$attribute").mix( {
       */\r
       return;\r
     }\r
-    this.frame.addLine(this.frame.$begin);\r
+    this.frame.addLine(this.frame.$begin.$activate.up());\r
   }\r
 } );\r
 //#endif // _SMIL_IDL_\r
index 788e82e..95f155c 100644 (file)
@@ -3335,11 +3335,23 @@ describe("SMIL Animation Spec", function() {
         expect(attr.element).toBe(p);\r
         expect(attr.frame.timelines.length).toEqual(0);\r
         \r
-        s.setAttribute("from");\r
-        expect(s.hasAttributeNS(null, "from")).toBeTruthy();\r
-        attr.push(s);\r
-        expect(attr.element).toBe(p);\r
-        expect(attr.frame.timelines.length).toEqual(1);\r
+        check("from", 1);\r
+        check("to", 2);\r
+        check("by", 3);\r
+        check("values", 4);\r
+        function check(attrName, num) {\r
+          s.setAttribute(attrName, "1");\r
+          expect(s.hasAttributeNS(null, attrName)).toBeTruthy();\r
+          attr.push(s);\r
+          expect(attr.element).toBe(p);\r
+          expect(attr.frame.timelines.length).toEqual(num);\r
+          \r
+          s.removeAttribute(attrName);\r
+          expect(s.hasAttributeNS(null, attrName)).toBeFalsy();\r
+          attr.push(s);\r
+          expect(attr.element).toBe(p);\r
+          expect(attr.frame.timelines.length).toEqual(num);\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