Skip to content
This repository has been archived by the owner on Sep 19, 2018. It is now read-only.

Add support for ByteString and USVString to IdlArray#assert_type_is. #90

Merged
merged 3 commits into from Nov 13, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions idlharness.js
Expand Up @@ -426,6 +426,9 @@ IdlArray.prototype.assert_type_is = function(value, type)
return;

case "DOMString":
case "ByteString":
case "USVString":
// TODO: https://github.com/w3c/testharness.js/issues/92
assert_equals(typeof value, "string");
return;

Expand Down Expand Up @@ -1798,6 +1801,8 @@ function create_suitable_object(type)
return 7;

case "DOMString":
case "ByteString":
case "USVString":
return "foo";

case "object":
Expand Down