mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 21:04:06 +00:00
jscript: Added Boolean's function lengths test.
This commit is contained in:
parent
d900491310
commit
67f14b7633
1 changed files with 14 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue