From 12305b8ec7df0c6cbd41e7a13babfb983cf3bb55 Mon Sep 17 00:00:00 2001 From: Robin Berjon Date: Tue, 15 Jan 2013 09:48:24 +0100 Subject: [PATCH] fixed for update to v2 --- idlharness.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/idlharness.js b/idlharness.js index 9d07d1c06fd10c..5c714b3f9f5b45 100644 --- a/idlharness.js +++ b/idlharness.js @@ -297,14 +297,17 @@ IdlArray.prototype.internal_add_idls = function(parsed_idls) case "typedef": // TODO + console.log("typedef not yet supported"); break; case "callback": // TODO + console.log("callback not yet supported"); break; case "enum": // TODO + console.log("enum not yet supported"); break; default: @@ -1432,7 +1435,7 @@ IdlInterface.prototype.test_members = function() // Make some suitable arguments var args = member.arguments.map(function(arg) { - return create_suitable_object(arg.type); + return create_suitable_object(arg.idlType); }); // "Let O be a value determined as follows: @@ -1629,10 +1632,10 @@ IdlInterface.prototype.test_interface_of = function(desc, obj, exception, expect obj[member.name].apply(obj, args); }.bind(this), "Called with " + i + " arguments"); - args.push(create_suitable_object(member.arguments[i].type)); + args.push(create_suitable_object(member.arguments[i].idlType)); } }.bind(this), this.name + " interface: calling " + member.name + - "(" + member.arguments.map(function(m) { return m.type.idlType; }) + + "(" + member.arguments.map(function(m) { return m.idlType.idlType; }) + ") on " + desc + " with too few arguments must throw TypeError"); } }