[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    khtmltests/js
From:       Harri Porten <porten () kde ! org>
Date:       2003-07-04 21:21:15
[Download RAW message or body]

CVS commit by porten: 

toFixed() was already tested. at the right place. test some length props.


  M +3 -1      function_length.js   1.4
  M +0 -5      math.js   1.10


--- khtmltests/js/math.js  #1.9:1.10
@@ -40,9 +40,4 @@
 shouldBeTrue("isNaN(Math.max(1,NaN,3))");
 
-// Math.toFixed()
-shouldBe("(NaN).toFixed(1)", "NaN");
-shouldBe("(1.23).toFixed(1)", "1.2");
-shouldBe("(1.23).toFixed()", "1");
-
 list=""
 for ( var i in Math ) { list += i + ','; }

--- khtmltests/js/function_length.js  #1.3:1.4
@@ -84,5 +84,4 @@
 shouldBe("Math.sqrt.length","1");
 shouldBe("Math.tan.length","1");
-shouldBe("Math.toFixed.length","1");
 shouldBe("Object.prototype.toString.length","0");
 shouldBe("Object.prototype.valueOf.length","0");
@@ -119,2 +118,5 @@
 shouldBe("String.prototype.anchor.length","1");
 shouldBe("String.prototype.link.length","1");
+shouldBe("Number.prototype.toString.length", "1");
+shouldBe("Number.prototype.valueOf.length", "0");
+shouldBe("Number.prototype.toFixed.length", "1");


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic