svnno****@sourc*****
svnno****@sourc*****
2011年 1月 23日 (日) 18:44:29 JST
Revision: 2322 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2322 Author: dhrname Date: 2011-01-23 18:44:29 +0900 (Sun, 23 Jan 2011) Log Message: ----------- スペルミスを修正 Modified Paths: -------------- trunk/Spec/SvgDomSpec.js Modified: trunk/Spec/SvgDomSpec.js =================================================================== --- trunk/Spec/SvgDomSpec.js 2011-01-21 12:44:02 UTC (rev 2321) +++ trunk/Spec/SvgDomSpec.js 2011-01-23 09:44:29 UTC (rev 2322) @@ -172,7 +172,7 @@ beforeEach(function() { s = svg.createSVGMatrix(); }); - it("for the default value on the property of SVGMtrix", function() { + it("for the default value on the property of SVGMatrix", function() { /*See http://www.w3.org/TR/SVG/struct.html#InterfaceSVGSVGElement * *The object is initialized to the identity matrix. *以下では、createSVGElementが単位行列を返しているかどうかをチェック @@ -212,6 +212,20 @@ *以下では新しいSVGMatrixオブジェクトを返しているかどうかをチェック */ expect(t).toNotBe(s); + var u = svg.createSVGMatrix(); + t.a = u.a = 2; + t.b = u.b = 2; + t.c = u.c = 2; + t.d = u.d = 2; + t.e = u.e = 2; + t.f = u.f = 2; + var m = t.multiply(u); + expect(m.a).toEqual(8); + expect(m.b).toEqual(8); + expect(m.c).toEqual(8); + expect(m.d).toEqual(8); + expect(m.e).toEqual(10); + expect(m.f).toEqual(10); }); /*同値分割をして、有効同値クラスを調べておく (Equivalence partitioning, the following is the valid partion)*/ it("should be this for the value", function() { @@ -244,7 +258,10 @@ }); /*同値分割をして、無効同値クラスを調べておく (equivalence partitioning, the following is the invalid partion)*/ it("should throw an Error, when it calls a 'multiply' method", function() { - var t = [Number.NEGATIVE_INFINITY, Number.POSITIVE_INFINITY, Number.NaN, {}, [], "", "1", "-1", undefined, null]; + var t = [Number.NEGATIVE_INFINITY, + Number.POSITIVE_INFINITY, + Number.NaN, + undefined]; for (var i=0,tli=t.length;i<tli;++i) { var ti = t[i], sn = function() { var n = svg.createSVGMatrix();