Skip to content

Commit

Permalink
Merge pull request web-platform-tests#22 from w3c/unimplemented-error…
Browse files Browse the repository at this point in the history
…-message

Improve the assertion failure when testing for an unimplemented attribute
  • Loading branch information
darobin committed Apr 5, 2013
2 parents b443a3b + cef1039 commit 0283545
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions idlharness.js
Original file line number Diff line number Diff line change
Expand Up @@ -1374,6 +1374,9 @@ IdlInterface.prototype.test_members = function()
"window does not have own property " + format_value(this.name));
assert_own_property(window[this.name], "prototype",
'interface "' + this.name + '" does not have own property "prototype"');
assert_true(member.name in window[this.name].prototype,
"The prototype object must have a property " +
format_value(member.name));

// TODO: Needs to test for LenientThis.
assert_throws(new TypeError(), function() {
Expand Down

0 comments on commit 0283545

Please sign in to comment.