Piotr Caban : jscript: Added Boolean's function lengths test.
Alexandre Julliard
julliard at winehq.org
Mon Aug 17 11:24:05 CDT 2009
Module: wine
Branch: master
Commit: 67f14b76338e9650d2dee95b61716ad36200bdd3
URL: http://source.winehq.org/git/wine.git/?a=commit;h=67f14b76338e9650d2dee95b61716ad36200bdd3
Author: Piotr Caban <piotr.caban at gmail.com>
Date: Mon Aug 17 12:11:24 2009 +0200
jscript: Added Boolean's function lengths test.
---
dlls/jscript/tests/api.js | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/dlls/jscript/tests/api.js b/dlls/jscript/tests/api.js
index 5d97224..a27a7bb 100644
--- a/dlls/jscript/tests/api.js
+++ b/dlls/jscript/tests/api.js
@@ -1396,4 +1396,18 @@ testObjectInherit(new Error(), false, true, true);
testObjectInherit(testObjectInherit, false, true, true);
testObjectInherit(Math, true, true, true);
+function testFunctions(obj, arr) {
+ var l;
+
+ for(var i=0; i<arr.length; i++) {
+ l = obj[arr[i][0]].length;
+ ok(l === arr[i][1], arr[i][0] + ".length = " + l);
+ }
+}
+
+testFunctions(Boolean.prototype, [
+ ["valueOf", 0],
+ ["toString", 0]
+ ]);
+
reportSuccess();
More information about the wine-cvs
mailing list