From 58850589afa43fa187e3f3886803a8d6136d3f00 Mon Sep 17 00:00:00 2001 From: dhrname Date: Sun, 24 May 2015 18:51:27 +0900 Subject: [PATCH] Add the Spec for the --- tool/Spec/spec/SvgDomSpec.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tool/Spec/spec/SvgDomSpec.js b/tool/Spec/spec/SvgDomSpec.js index 7ba05d0..193185f 100644 --- a/tool/Spec/spec/SvgDomSpec.js +++ b/tool/Spec/spec/SvgDomSpec.js @@ -3756,6 +3756,25 @@ describe("SMIL Animation Spec", function() { } ); /*同値分割をして、有効同値クラスを調べておく (Equivalence partitioning, the following is the valid partion)*/ it("should be this for the value (the valid partion on a spline mode )", function() { + ele.setAttributeNS(null, "begin", "0s"); + ele.setAttributeNS(null, "dur", "100s"); + ele.setAttributeNS(null, "attributeName", "d"); + ele.setAttributeNS(null, "fill", "freeze"); + ele.setAttributeNS(null, "from", "M20 0 L20 30"); + ele.setAttributeNS(null, "to", "M20 2400 L20 30"); + $animate.init(ele); + + var p = ele.parentNode; + expect(p.getAttributeNS(null, "d") || null).toBeNull(); + + function f(fr, result) { + frame.setFrame(fr); + expect(p.getAttributeNS(null, "d")).toBe(result); + }; + + for (var i=0;i<2400;++i) { + f(i, "M20.0 " +i+ ".0 L20.0 30.0"); + } } ); /*無効同値クラスを調べておく (Equivalence partitioning, the following is the invalid partion)*/ it("should be this for the value (the invalid partion on a spline mode )", function() { -- 2.11.0