Commit 67f14b76 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

jscript: Added Boolean's function lengths test.

parent d9004913
......@@ -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();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment