svnno****@sourc*****
svnno****@sourc*****
2011年 4月 19日 (火) 19:51:06 JST
Revision: 2610 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2610 Author: dhrname Date: 2011-04-19 19:51:06 +0900 (Tue, 19 Apr 2011) Log Message: ----------- SVGColorのデフォルト値チェックを追加 Modified Paths: -------------- trunk/Spec/spec/SvgDomSpec.js Modified: trunk/Spec/spec/SvgDomSpec.js =================================================================== --- trunk/Spec/spec/SvgDomSpec.js 2011-04-18 11:51:11 UTC (rev 2609) +++ trunk/Spec/spec/SvgDomSpec.js 2011-04-19 10:51:06 UTC (rev 2610) @@ -1009,12 +1009,14 @@ describe("SVG Unit :: SVGColor", function() { var s = []; beforeEach(function() { - svg.style.setProperty("stop-color", "black") + svg.style.setProperty("stop-color", "white") s[s.length] = svg.style.getPropertyCSSValue("stop-color"); //SVGColor型オブジェクトを返す }); /*デフォルト値かどうかをチェックしていく(Checking the default value of a SVGColor interface.)*/ it("for the default value on the property of SVGColor", function() { - expect(typeof s.rgbColor).toEqual(0); + expect(typeof s.rgbColor.red.getFloatValue(2)).toEqual(0); + expect(typeof s.rgbColor.green.getFloatValue(2)).toEqual(0); + expect(typeof s.rgbColor.blue.getFloatValue(2)).toEqual(0); }); }); }); \ No newline at end of file