Skip to content

Commit

Permalink
fixed for update to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
darobin committed Jan 15, 2013
1 parent f8f8205 commit 12305b8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions idlharness.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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");
}
}
Expand Down

0 comments on commit 12305b8

Please sign in to comment.