svnno****@sourc*****
svnno****@sourc*****
2011年 4月 7日 (木) 20:50:07 JST
Revision: 2571 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2571 Author: dhrname Date: 2011-04-07 20:50:07 +0900 (Thu, 07 Apr 2011) Log Message: ----------- SVGNumberとSVGAngleのテストを追加 Modified Paths: -------------- trunk/Spec/spec/SvgDomSpec.js Modified: trunk/Spec/spec/SvgDomSpec.js =================================================================== --- trunk/Spec/spec/SvgDomSpec.js 2011-04-07 11:49:43 UTC (rev 2570) +++ trunk/Spec/spec/SvgDomSpec.js 2011-04-07 11:50:07 UTC (rev 2571) @@ -907,4 +907,25 @@ t = null; }); }); + describe("SVG Unit :: SVGNumber", function() { + var s; + beforeEach(function() { + s = svg.createSVGNumber(); + }); + /*デフォルト値かどうかをチェックしていく(Checking the default value of a SVGNumber interface.)*/ + it("for the default value on the property of SVGNumber", function() { + expect(s.value).toEqual(0); + }); + }); + describe("SVG Unit :: SVGAngle", function() { + var s; + beforeEach(function() { + s = svg.createSVGAngle(); + }); + /*デフォルト値かどうかをチェックしていく(Checking the default value of a SVGNumber interface.)*/ + it("for the default value on the property of SVGNumber", function() { + expect(s.value).toEqual(0); + expect(s.unitType).toEqual(1); + }); + }); }); \ No newline at end of file