OSDN Git Service

Edit the Spec for the init method
authordhrname <dhrname@users.sourceforge.jp>
Fri, 19 Feb 2016 14:20:30 +0000 (23:20 +0900)
committerdhrname <dhrname@users.sourceforge.jp>
Fri, 19 Feb 2016 14:20:30 +0000 (23:20 +0900)
tool/Spec/spec/SvgDomSpec.js

index 18553b1..1605bcc 100644 (file)
@@ -2604,14 +2604,17 @@ describe("SMIL Animation Spec", function() {
           expect($animate.tocall(1)).toBe("scale(1.0) scale(1.0)");\r
           \r
           ele.parentNode.appendChild(ele.cloneNode(true));\r
-          $animate.numberOfList = -1;\r
+          $animate.up("$a").numberOfList = -1;\r
           ele.parentNode.setAttribute("transform", "matrix(0 0 0 0 0 0)");\r
-          $animate.init(ele.parentNode.lastChild);\r
-          expect($animate.numberOfList).toBe(2);\r
-          expect($animate.isDefault).toBeTruthy();\r
-          expect($animate.defaultValue).toBe("matrix(0 0 0 0 0 0)");\r
-          expect($animate.tocall(0)).toBe("matrix(0 0 0 0 0 0) scale(1.0) scale(1.0) scale(0.0)");\r
-          expect($animate.tocall(1)).toBe("matrix(0 0 0 0 0 0) scale(1.0) scale(1.0) scale(1.0)");\r
+          $animate.$a.init(ele.parentNode.lastChild);\r
+          expect($animate.$a.numberOfList).toBe(2);\r
+          expect($animate.$a.isDefault).toBeTruthy();\r
+          expect($animate.$a.defaultValue).toBe("matrix(0 0 0 0 0 0)");\r
+          expect($animate.$a.tocall(0)).toBe("matrix(0 0 0 0 0 0) scale(1.0) scale(1.0) scale(0.0)");\r
+          expect($animate.$a.tocall(1)).toBe("matrix(0 0 0 0 0 0) scale(1.0) scale(1.0) scale(1.0)");\r
+          $animate.defaultValue = $animate.$a.defaultValue;\r
+          expect($animate.tocall(0.1)).toBe("matrix(0 0 0 0 0 0) scale(1.0) scale(0.1) scale(1.0)");\r
+        \r
         } );\r
       } );\r
     } );\r