From 88eff99c051d5cfc0dffe570610ecc37f05b4b45 Mon Sep 17 00:00:00 2001 From: dhrname Date: Thu, 7 May 2015 23:16:08 +0900 Subject: [PATCH] Modify the Spec for a setKey method --- tool/Spec/spec/SvgDomSpec.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tool/Spec/spec/SvgDomSpec.js b/tool/Spec/spec/SvgDomSpec.js index f2b1660..0ba3865 100644 --- a/tool/Spec/spec/SvgDomSpec.js +++ b/tool/Spec/spec/SvgDomSpec.js @@ -3553,7 +3553,11 @@ describe("SMIL Animation Spec", function() { expect(attr.setKey(s)[0].to.keyTime).toEqual(0.1); expect(attr.setKey(s)[1].to.keyTime).toEqual(0.1); expect(attr.setKey(s)[2].to.keyTime).toEqual(0.8); - } ); + s.setAttributeNS(null, "values", " 0; 2;12 ;30 "); + s.setAttributeNS(null, "keyTimes", " 0; 0.1; 0.2 ; 1 "); + expect(attr.setKey(s)[0].to.keyTime).toEqual(0.1); + expect(attr.setKey(s)[1].to.keyTime).toEqual(0.1); + expect(attr.setKey(s)[2].to.keyTime).toEqual(0.8); } ); /*無効同値クラスを調べておく (Equivalence partitioning, the following is the invalid partion)*/ it("should be this for the value (the invalid partion on a spline mode )", function() { s.setAttributeNS(null, "keyTimes", "0;0.1;0.2;1"); -- 2.11.0