[Sie-announce] SIEコード [2371] Number. MIN_VALUEを2で割る誤りを修正

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2011年 2月 6日 (日) 20:25:52 JST


Revision: 2371
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2371
Author:   dhrname
Date:     2011-02-06 20:25:52 +0900 (Sun, 06 Feb 2011)

Log Message:
-----------
Number.MIN_VALUEを2で割る誤りを修正

Modified Paths:
--------------
    trunk/Spec/spec/SvgDomSpec.js

Modified: trunk/Spec/spec/SvgDomSpec.js
===================================================================
--- trunk/Spec/spec/SvgDomSpec.js	2011-02-06 11:25:09 UTC (rev 2370)
+++ trunk/Spec/spec/SvgDomSpec.js	2011-02-06 11:25:52 UTC (rev 2371)
@@ -102,7 +102,7 @@
     });
     /*境界条件を調べておく (limit value analysis)*/
     it("should be this for the value, when it calls a newValueSpecifiedUnits method", function() {
-      var t = [Number.MAX_VALUE, Number.MIN_VALUE, 0, Number.MAX_VALUE/2, Number.MIN_VALUE/2];
+      var t = [Number.MAX_VALUE, Number.MIN_VALUE, 0, Number.MAX_VALUE/2, Number.MIN_VALUE];
       for (var i=0,tli=t.length;i<tli;++i) {
         s.newValueSpecifiedUnits(1, t[i]);
         expect(s.valueInSpecifiedUnits).toEqual(t[i]);
@@ -186,7 +186,7 @@
     });
     /*境界条件を調べておく (limit value analysis about a 'multiply')*/
     it("should be this for the value, when it calls a 'multiply' method", function() {
-      var t = [Number.MAX_VALUE, Number.MIN_VALUE, 0, Number.MAX_VALUE/2, Number.MIN_VALUE/2, 0];
+      var t = [Number.MAX_VALUE, Number.MIN_VALUE, 0, Number.MAX_VALUE/2, Number.MIN_VALUE, 0];
       for (var i=0,tli=t.length;i<tli;++i) {
         var n = svg.createSVGMatrix();
         n.a = t[i];
@@ -443,7 +443,6 @@
     });
     /*座標指定による回転変換に関する境界条件を調べておく (limit value analysis about the 'rotateFromVector')*/
     it("should be this for the value, when it calls the 'rotateFromVector'", function() {
-      /*IE8において、Number.MIN_VALUEを2で割ると0となるバグがある (There's a bug that Number.MIN_VALUE/2 is zero in IE8)*/
       var t = [1, 1,
                -1, -1,
                1, -1,




Sie-announce メーリングリストの案内
Back to archive index