From 853bb7ba1a16c61405b8f55f501eadc51164b505 Mon Sep 17 00:00:00 2001 From: dhrname Date: Fri, 19 Feb 2016 23:20:30 +0900 Subject: [PATCH] Edit the Spec for the init method --- tool/Spec/spec/SvgDomSpec.js | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/tool/Spec/spec/SvgDomSpec.js b/tool/Spec/spec/SvgDomSpec.js index 18553b1..1605bcc 100644 --- a/tool/Spec/spec/SvgDomSpec.js +++ b/tool/Spec/spec/SvgDomSpec.js @@ -2604,14 +2604,17 @@ describe("SMIL Animation Spec", function() { expect($animate.tocall(1)).toBe("scale(1.0) scale(1.0)"); ele.parentNode.appendChild(ele.cloneNode(true)); - $animate.numberOfList = -1; + $animate.up("$a").numberOfList = -1; ele.parentNode.setAttribute("transform", "matrix(0 0 0 0 0 0)"); - $animate.init(ele.parentNode.lastChild); - expect($animate.numberOfList).toBe(2); - expect($animate.isDefault).toBeTruthy(); - expect($animate.defaultValue).toBe("matrix(0 0 0 0 0 0)"); - expect($animate.tocall(0)).toBe("matrix(0 0 0 0 0 0) scale(1.0) scale(1.0) scale(0.0)"); - expect($animate.tocall(1)).toBe("matrix(0 0 0 0 0 0) scale(1.0) scale(1.0) scale(1.0)"); + $animate.$a.init(ele.parentNode.lastChild); + expect($animate.$a.numberOfList).toBe(2); + expect($animate.$a.isDefault).toBeTruthy(); + expect($animate.$a.defaultValue).toBe("matrix(0 0 0 0 0 0)"); + expect($animate.$a.tocall(0)).toBe("matrix(0 0 0 0 0 0) scale(1.0) scale(1.0) scale(0.0)"); + expect($animate.$a.tocall(1)).toBe("matrix(0 0 0 0 0 0) scale(1.0) scale(1.0) scale(1.0)"); + $animate.defaultValue = $animate.$a.defaultValue; + expect($animate.tocall(0.1)).toBe("matrix(0 0 0 0 0 0) scale(1.0) scale(0.1) scale(1.0)"); + } ); } ); } ); -- 2.11.0