OSDN Git Service

Modify the Spec for the advance method
authordhrname <dhrname@users.sourceforge.jp>
Fri, 3 Apr 2015 14:26:57 +0000 (23:26 +0900)
committerdhrname <dhrname@users.sourceforge.jp>
Fri, 3 Apr 2015 14:26:57 +0000 (23:26 +0900)
tool/Spec/spec/SvgDomSpec.js

index bcc14a8..40fe859 100644 (file)
@@ -3049,6 +3049,13 @@ describe("SMIL Animation Spec", function() {
         expect(from.$to.advance(0)).toEqual("a-10.0s1.5");\r
         expect(from.$to.advance(0.4)).toEqual("a-2.0s-0.3");\r
         expect(from.$to.advance(1)).toEqual("a10.0s-3.0");\r
+        \r
+        from.$to.underlying.additive[0] = 1;\r
+        from.$to.underlying.accumlate[1] = 2;\r
+        expect(from.$to.advance(0.4)).toEqual("a-1.0s1.7");\r
+        from.$to.underlying.additive[0] = 0.5;\r
+        from.$to.underlying.accumlate[1] = 0.8;\r
+        expect(from.$to.advance(1)).toEqual("a10.5s-2.2");\r
       } );\r
       /*無効同値クラスを調べておく (Equivalence partitioning, the following is the invalid partion)*/\r
       it("should be this for the value (the invalid partion)", function() {\r